Skip to content

Commit 9f0e7c6

Browse files
committed
BUGFIX:
- Display a proper errormessage if the bot does not have the Ban Members permission.
1 parent 6555bfb commit 9f0e7c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/cloud/commands.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ async def cloud_bans(self):
328328
await guild.ban(user, reason='DGSA: ' + reason)
329329
except aiohttp.ClientError:
330330
self.log.warning("Cloud service unavailable.")
331+
except discord.Forbidden:
332+
self.log.error('DCSServerBot needs the "Ban Members" permission.')
331333

332334
@cloud_bans.before_loop
333335
async def before_cloud_bans(self):

0 commit comments

Comments
 (0)