async def kick(message): db = loader.db_loaded() if message.mentions.__len__() > 0: for user in message.mentions: user = await message.guild.query_members(user_ids=[user.id]) user = user[0] await user.kick(reason="Kicked by roBOT!")
async def unmute(message): db = loader.db_loaded() if message.mentions.__len__() > 0: for user in message.mentions: user = await message.guild.query_members(user_ids=[user.id]) user = user[0] try: await user.edit(mute=False) except Exception: await message.channel.send("User's not connected to voice!")
async def confess(discord, message): await message.delete() db = loader.db_loaded() client = loader.client_loaded() hold = message.content.find( " ") # searches for the first space after the command await db.confess( client, discord, message.content[(hold + 1):len(message.content)], message, )
async def rank(discord, message): db = loader.db_loaded() await db.rank_query(message) await message.add_reaction("\U0001f44d")
async def deconfigconfess(message): db = loader.db_loaded() await db.confess_deconfig(message.guild.id, message)
async def moderation(message): db = loader.db_loaded() await db.moderation_service(message.guild.id, message)
async def leave(message): db = loader.db_loaded() await db.leave_server(message.guild.id, message)
async def deconfigure(message): db = loader.db_loaded() await db.server_deconfig(message.guild.id, message)