Skip to content

Commit

Permalink
Apply suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JedHazaymeh committed Feb 1, 2024
1 parent cb1d77f commit ae7cea8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/extensions/boosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def build_boost_message(
message = base_message + multiple_boosts_message + "!"

if (message_type in BOOST_TIERS):
count = BOOST_TIERS.index(message_type)
count = BOOST_TIERS.index(message_type) + 1
message += f"\n{guild.name} has reached **Level {count}!**"

return message
Expand Down
3 changes: 2 additions & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
async def get_guild(client: GatewayClient, event: hikari.GuildMessageCreateEvent):
return event.get_guild() or await client.rest.fetch_guild(event.guild_id)

def role_mention(role: hikari.Snowflake | str): return f"<@&{role}>"
def role_mention(role_id: hikari.Snowflake | int | str):
return f"<@&{role_id}>"

0 comments on commit ae7cea8

Please sign in to comment.