using @property for existing context functions

This commit is contained in:
2021-11-06 17:56:17 +01:00
parent c3fc008f3a
commit 9b2babf4e3
3 changed files with 21 additions and 23 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ class SettingsCog(BaseCog, name="Settings"):
voicechannel_id = ctx.author.voice.channel.id
textchannel_id = ctx.message.channel.id
await AutoJoin.update_channel(
ctx.get_redis(), ctx.guild.id, voicechannel_id, textchannel_id
ctx.redis, ctx.guild.id, voicechannel_id, textchannel_id
)
await EmbedGenerator.Message(ctx, "Autojoin", "`enabled`")
@@ -39,7 +39,7 @@ class SettingsCog(BaseCog, name="Settings"):
@commands.cooldown(rate=1, per=5, type=commands.BucketType.user)
async def autojoin_del(self, ctx: CustomContext):
"""Disable the bot automatically joining"""
await AutoJoin.del_channel(ctx.get_redis(), ctx.guild.id)
await AutoJoin.del_channel(ctx.redis, ctx.guild.id)
await EmbedGenerator.Message(ctx, "Autojoin", "`disabled`")