fix(issues): text channel is now stored as an id
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 4s

This commit is contained in:
Seaswimmer 2023-08-18 17:21:12 -04:00
parent f649d92808
commit 3cc3245c8b
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -17,7 +17,7 @@ class Issues(commands.Cog):
@commands.command()
async def issuesconfig(self, ctx: commands.Context, channel: discord.TextChannel = None):
if channel:
await self.config.request_channel.set(channel)
await self.config.request_channel.set(channel.id)
await ctx.send(content=f"Channel set to {channel.mention}.\nRun this command again without a channel argument to configure the other settings.")
else:
await ctx.channel.send(content="Click the button below to configure the cog.", view=self.IssueConfigurationButton(self.config, ctx))