SGA-A / c2c

Source code for the custom app exclusive to cc, where most interactions begin and end.
MIT License
1 stars 0 forks source link

Avoid user mentions due to global scope #103

Closed SGA-A closed 5 months ago

SGA-A commented 5 months ago

Is your feature request related to a problem? Please describe. Because the bot can now interact with members outside the invocation guild, it means that the mention is not displayed properly for users that do not have any mutual guilds with that user. It would be displayed as <@12345678901112131415> instead of @someone. Not very helpful for those reading the message who aren't sharing any guilds with that user.

Describe the solution you'd like Instead of this:

await ctx.send(f"{member.mention}'s balance")

Do this:

await ctx.send(f"{member}'s balance")

Behind the scenes member is being converted to its string representation (casted), which is just their name. This means everyone can read the name of that member, not just the invoker.

SGA-A commented 5 months ago

Not planned due to UX reasons, we will leave it as is because this has not become as problematic yet.