Fixed some issues
This commit is contained in:
@@ -62,6 +62,14 @@ class PlayerLink(commands.Cog):
|
||||
|
||||
channelid = ctx.channel.id
|
||||
authorid = ctx.author.id
|
||||
|
||||
dbLinker = PlayerDBLinker()
|
||||
if dbLinker.discordidused(authorid):
|
||||
await ctx.send(f"{ctx.author.mention}, your account is already linked!")
|
||||
dbLinker.close()
|
||||
return
|
||||
|
||||
|
||||
code = get_random_string(8)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user