TrueWinter / DiscordBot

My Discord bot. Development has been stopped
https://blog.truewinter.dev/2020/04/09/development-and-support-for-my-discord-bot-has-been-stopped
Apache License 2.0
46 stars 42 forks source link

Getting an error for the `reason` command #40

Closed DieselJS closed 4 years ago

DieselJS commented 5 years ago

When I ban/Unban someone, It tells me to use the reason command. I use !reason 2 Test for example and it says: TypeError: Cannot read property '0' of undefined Around the

        modLog.fetchMessages(caseLog.id).then(logMsg => {
            const embed = logMsg.embeds[0];
            embedSan(embed);

section If anyone could help me get this working I'll be super delighted! Thanks, DieselJS

TrueWinter commented 4 years ago

Do you have the mod log channel set in the server config (use the set command)?

TrueWinter commented 4 years ago

Closing this issue due to no reply.

DieselJS commented 4 years ago

Yes I did btw.

DieselJS commented 4 years ago

Yea I used the dashboard, default config, set command. Still doesn't work, console shows no error but the bot replies with "Unable to find that case number", which is about line 10-25.