add getguildbans owner command
@@ -174,6 +174,19 @@ class Owner(commands.Cog):
await self.db.update_user(uid, 'emeralds', balance)
await ctx.message.add_reaction(self.d.emojis.yes)
+ @commands.command(name='getguildbans')
+ @commands.is_owner()
+ async def get_guild_bans(self, ctx):
+ bans = await ctx.guild.bans()
+
+ await ctx.send(bans[0].__dict__)
+ return
+
+ body = ''
+ for i, ban in enumerate(bans):
+ if i % 30 != 0:
+ body += f'{}'
+
def setup(bot):
bot.add_cog(Owner(bot))
