SwiftQS / SDG_Discord_Bot_Original

Multipurpose bot for a private Discord server.
3 stars 1 forks source link

Copy Pasta error for Updated Server role variable reference #93

Closed DaKing closed 6 years ago

DaKing commented 6 years ago

deleted role should have been original role.

This is why boilerplate copy pasta sucks! Mental note to just refactor it all away

Stacktrace: ReferenceError: deletedServerRole is not defined at ServerLogManager.serverRoleUpdatedEvent (/SDG_Discord_Bot/modules/serverLogModule.js:122:20) at Client. (/SDG_Discord_Bot/SDGDiscordBot.js:457:13) at emitTwo (events.js:106:13) at Client.emit (events.js:192:7) at GuildRoleUpdateAction.handle (/SDG_Discord_Bot/node_modules/discord.js/src/client/actions/GuildRoleUpdate.js:18:16) at GuildRoleUpdateHandler.handle (/SDG_Discord_Bot/node_modules/discord.js/src/client/websocket/packets/handlers/GuildRoleUpdate.js:7:36)