fix(issues): changed some config names
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
6c0a38af59
commit
473e5c3165
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ class Issues(commands.Cog):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
self.config = Config.get_conf(self, identifier=4285273314713, force_registration=True)
|
self.config = Config.get_conf(self, identifier=4285273314713, force_registration=True)
|
||||||
self.config.register_global(
|
self.config.register_global(
|
||||||
channel = None,
|
request_channel = None,
|
||||||
gitea_url = 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)
|
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):
|
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:
|
if channel is None:
|
||||||
await interaction.response.send_message(content=f"The cog is misconfigured, please report this error.", ephemeral=True)
|
await interaction.response.send_message(content=f"The cog is misconfigured, please report this error.", ephemeral=True)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue