Iets van een fix voor de punten hopelijk

This commit is contained in:
2021-04-07 21:52:53 +02:00
parent 60199bc41a
commit 3b26e80bb8
+2 -2
View File
@@ -41,7 +41,7 @@ class Points(commands.Cog):
#TODO ook userId oid toestaan?
return
userObj = self.bot.get_user( int(user.replace("<@!", "").replace("<@", "").replace(">", "")) )
userObj = ctx.message.mentions[0]
if userObj.id == ctx.author.id:
yield from ctx.channel.send("Nee. Je mag niet jezelf punten geven.")
@@ -98,7 +98,7 @@ class Points(commands.Cog):
yield from self.sendErrorDm(ctx, "Je moet iemand taggen. :)")
return
userObj = self.bot.get_user( int(user.replace("<@!", "").replace("<@", "").replace(">", "")) )
userObj = ctx.message.mentions[0]
if not self.isUserOnList(userObj):
yield from ctx.channel.send("Nee.")