fix(issues): text channel is now stored as an id
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 4s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 4s
This commit is contained in:
parent
f649d92808
commit
3cc3245c8b
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue