Skip to content

Commit

Permalink
Merge pull request #63 from hackthebox/other-cog-fixes
Browse files Browse the repository at this point in the history
Use ctx.respond instead of ctx.channel.send
  • Loading branch information
makelarisjr authored Aug 19, 2023
2 parents 2d8266f + f42bd0a commit f908b21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmds/core/other.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async def no_hints(
self, ctx: ApplicationContext
) -> Message:
"""A simple reply stating hints are not allowed."""
return await ctx.channel.send(
return await ctx.respond(
"No hints are allowed for the duration the event is going on. This is a competitive event with prizes. "
"Once the event is over you are more then welcome to share solutions/write-ups/etc and try them in the "
"After Party event."
Expand All @@ -31,7 +31,7 @@ async def support(
self, ctx: ApplicationContext
) -> Message:
"""A simple reply proving a link to the support desk article on how to get support"""
return await ctx.channel.send(
return await ctx.respond(
"https://help.hackthebox.com/en/articles/5986762-contacting-htb-support"
)
@slash_command(guild_ids=settings.guild_ids, description="Add the URL which has spoiler link.")
Expand Down

0 comments on commit f908b21

Please sign in to comment.