mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-07-01 10:45:25 +02:00
Added commands I think
This commit is contained in:
@ -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:
|
||||||
|
Reference in New Issue
Block a user