BulletBot icon indicating copy to clipboard operation
BulletBot copied to clipboard

Closed DMs makes moderation commands throw errors

Open Jet132 opened this issue 5 years ago • 2 comments

Describe the bug When you try to use a moderation command on someone that has closed DMs the bot errors because it can't send a DM to that user.

To Reproduce Steps to reproduce the behavior:

  1. Find a user with closed DMs
  2. Try to ban/mute/warn/etc. him

Expected behavior The bot should throw any errors but just not send a dm

Setup (please complete the following information):

  • Release Version 1.2.8

Solution This can probably be fixed by a simple try-catch

Jet132 avatar Mar 02 '20 11:03 Jet132

This was fixed with this commit Looks like only for ban command though

geniusjam avatar Jun 11 '20 10:06 geniusjam

yeah. I'll change the issue so it includes all moderation commands as those can still throw errors

Jet132 avatar Jun 11 '20 13:06 Jet132