Commit eb2ff45d authored by Morgân von Brylân's avatar Morgân von Brylân

SPOY : Corrigé pour de vrai le plantage.

parent 70c5d8c8
......@@ -48,9 +48,6 @@ const Discord = require("discord.js"),
silenceRobot: {
type: "boolean"
},
customShouts: {
type: "all"
},
maxRolls: {
type: "integer",
bounds: [0, 100]
......@@ -651,7 +648,8 @@ client.on("guildUpdate", (oldG, newG) => {
client.on("guildDelete", srv => {
const role = spoyRules.SPOY.roles.get(servers[srv.id].bbRole),
const stg = servers[srv.id],
role = stg ? spoyRules.SPOY.roles.get(stg.bbRole) : null,
channel = spoyRules.bbCategory.children.find("topic", srv.id);
if(role)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment