mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-28 07:57:04 +01:00
Added commands I think
This commit is contained in:
parent
1a9b3ad452
commit
ef1d2f8a99
@ -157,7 +157,7 @@ class Titan(commands.Bot):
|
|||||||
await self.database.unban_server_user(user, server)
|
await self.database.unban_server_user(user, server)
|
||||||
|
|
||||||
|
|
||||||
@bot.command(pass_context=True)
|
@commands.command(pass_context=True)
|
||||||
async def ban(ctx, self):
|
async def ban(ctx, self):
|
||||||
message = ctx.message
|
message = ctx.message
|
||||||
if not message.author.server_permissions.ban_members:
|
if not message.author.server_permissions.ban_members:
|
||||||
@ -174,7 +174,7 @@ class Titan(commands.Bot):
|
|||||||
reason = await self.database.ban_unauth_user_by_query(message.server.id, message.author.id, username, discriminator)
|
reason = await self.database.ban_unauth_user_by_query(message.server.id, message.author.id, username, discriminator)
|
||||||
await self.send_message(message.channel, message.author.mention + " " + reason)
|
await self.send_message(message.channel, message.author.mention + " " + reason)
|
||||||
|
|
||||||
@bot.command(pass_context=True)
|
@commands.command(pass_context=True)
|
||||||
async def kick(ctx, self):
|
async def kick(ctx, self):
|
||||||
message = ctx.message
|
message = ctx.message
|
||||||
if not message.author.server_permissions.kick_members:
|
if not message.author.server_permissions.kick_members:
|
||||||
|
Loading…
Reference in New Issue
Block a user