Skip to content

Commit

Permalink
fix logging spelling error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltzmax committed Nov 21, 2023
1 parent fa3086d commit a961f54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions suggestion/suggestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ async def approve(self, ctx, message_id: int, *, reason: Optional[str] = None):
msg = await channel.fetch_message(message_id)
except (discord.NotFound, discord.Forbidden, discord.HTTPException) as e:
return await ctx.send("Something went wrong while approving the suggestion")
info.log(f"Some error occured while approving a suggestion: {e}")
log.info(f"Some error occured while approving a suggestion: {e}")
if reason is not None and len(reason) > 1024:
return await ctx.send(
"Your reason must be between 0 and 1024 characters long"
Expand All @@ -268,7 +268,7 @@ async def approve(self, ctx, message_id: int, *, reason: Optional[str] = None):
embed = msg.embeds[0]
except IndexError:
return await ctx.send("Message not found")
info.log(
log.info(
f"{ctx.author} tried to approve a message that is not a suggestion"
)
if embed.title != "New Suggestion":
Expand Down Expand Up @@ -315,7 +315,7 @@ async def reject(self, ctx, message_id: int, *, reason: Optional[str] = None):
msg = await channel.fetch_message(message_id)
except (discord.NotFound, discord.Forbidden, discord.HTTPException) as e:
return await ctx.send("Something went wrong while rejecting the suggestion")
info.log(f"Some error occured while rejecting a suggestion: {e}")
log.info(f"Some error occured while rejecting a suggestion: {e}")
if reason is not None and len(reason) > 1024:
return await ctx.send(
"Your reason must be between 0 and 1024 characters long"
Expand All @@ -325,7 +325,7 @@ async def reject(self, ctx, message_id: int, *, reason: Optional[str] = None):
embed = msg.embeds[0]
except IndexError:
return await ctx.send("Message not found")
info.log(
log.info(
f"{ctx.author} tried to reject a message that is not a suggestion"
)
if embed.title != "New Suggestion":
Expand Down

0 comments on commit a961f54

Please sign in to comment.