fix(issues): changed some config names
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 4s

This commit is contained in:
Seaswimmer 2023-08-18 16:48:37 -04:00
parent 6c0a38af59
commit 473e5c3165
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -9,7 +9,7 @@ class Issues(commands.Cog):
self.bot = bot
self.config = Config.get_conf(self, identifier=4285273314713, force_registration=True)
self.config.register_global(
channel = None,
request_channel = None,
gitea_url = None
)
@ -19,7 +19,7 @@ class Issues(commands.Cog):
await interaction.response.send_message(content="Hello world!", view=self.IssueButtons(color, self), ephemeral=True)
async def submit_issue_request(self, interaction: discord.Interaction, embed: discord.Embed):
channel = self.bot.get_channel(self.config.channel())
channel = self.bot.get_channel(self.config.request_channel())
if channel is None:
await interaction.response.send_message(content=f"The cog is misconfigured, please report this error.", ephemeral=True)
try: