Game: fixed unused param in delete function

This commit is contained in:
Elnath 2021-06-09 23:38:33 +02:00
parent b9d5b17954
commit 8d8b0bc4b9
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ class Game:
self.config["game_started"] = True self.config["game_started"] = True
self.save_function() self.save_function()
async def delete(self, guild: discord.Guild): async def delete(self):
category = self.get_game_category() category = self.get_game_category()
for channel in category.channels: for channel in category.channels:
await channel.delete() await channel.delete()

View File

@ -106,7 +106,7 @@ class SecretBot(commands.Cog):
if game.is_started(): if game.is_started():
if game.is_gm(ctx.author) or utils.is_administrator(ctx.author): if game.is_gm(ctx.author) or utils.is_administrator(ctx.author):
gm_role = game.get_gm_role() gm_role = game.get_gm_role()
await game.delete(ctx.guild) await game.delete()
await ctx.guild.get_member(self.bot.user.id).remove_roles(gm_role) await ctx.guild.get_member(self.bot.user.id).remove_roles(gm_role)
await ctx.reply(":white_check_mark: Game deleted!") await ctx.reply(":white_check_mark: Game deleted!")
else: else: