1
0
mirror of https://gitlab.com/Deukhoofd/DeukBot4.git synced 2025-10-27 17:00:05 +00:00

Fixes being able to ban helpers, moderators and admins

This commit is contained in:
2018-12-06 21:53:40 +01:00
parent 2e77b6d563
commit 158f3087d6

View File

@@ -72,7 +72,7 @@ namespace DeukBot4.MessageHandlers.CommandHandler
return; return;
// get the id of the user, this parses the string to an id // get the id of the user, this parses the string to an id
var user = await request.Parameters[0].AsDiscordUser(); var user = await request.Parameters[0].AsDiscordGuildUser(channel.Guild);
if (user != null) if (user != null)
{ {
// get the permissions of the user we want to kick // get the permissions of the user we want to kick