Skip to content

Commit

Permalink
Fix custom commands' & other things guild placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Jan 3, 2025
1 parent fb7e50d commit aae46cf
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,14 @@ object MessageUtils {
val guildSize = source.memberCount.toString()
val mentionOwner = source.owner?.asMention ?: "???"
val owner = source.owner?.effectiveName ?: "???"
tokens["guild"] = source.name


tokens[Placeholders.GUILD_NAME_SHORT.name] = source.name
tokens[Placeholders.GUILD_NAME.name] = source.name
tokens[Placeholders.GUILD_SIZE.name] = guildSize
tokens[Placeholders.GUILD_ICON_URL.name] = source.iconUrl?.replace("jpg", "png")

// Deprecated stuff
tokens["guildsize"] = guildSize
tokens["guild-size"] = guildSize
tokens["@owner"] = mentionOwner
Expand Down

0 comments on commit aae46cf

Please sign in to comment.