Skip to content

Commit 586ca71

Browse files
authored
Merge pull request #313 from practical-python-org/hotfix/suggestion_typo
fix: typo
2 parents 765b2e6 + c80c8b6 commit 586ca71

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/zorak/cogs/general/general_suggest.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
import discord
77
from discord.ext import commands
88

9-
from zorak.utilities.cog_helpers._embeds import (
10-
embed_suggestion,
11-
embed_suggestion_error# pylint: disable=E0401
12-
)
9+
from zorak.utilities.cog_helpers._embeds import embed_suggestions, embed_suggestion_error # pylint: disable=E0401
1310

1411
logger = logging.getLogger(__name__)
1512

@@ -38,7 +35,7 @@ async def suggest(self, ctx, question):
3835
'''
3936
suggest_channel = await self.bot.fetch_channel(self.bot.server_settings.normal_channel["suggestions_channel"])
4037
if ctx.channel_id == suggest_channel.id:
41-
msg = await ctx.respond(embed = embed_suggestion(ctx.author, question))
38+
msg = await ctx.respond(embed = embed_suggestions(ctx.author, question))
4239
await msg.add_reaction("👍")
4340
await msg.add_reaction("👎")
4441
else:

src/zorak/utilities/cog_helpers/_embeds.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ def embed_suggestions(author, question):
423423

424424
return embed
425425

426+
426427
def embed_suggestion_error(channel):
427428
embed = discord.Embed(
428429
title='Oops!'

0 commit comments

Comments
 (0)