discord-bot-best-practices icon indicating copy to clipboard operation
discord-bot-best-practices copied to clipboard

Avoid forward slash as a prefix

Open henke37 opened this issue 6 years ago • 8 comments

Add the forward slash as a character to avoid for prefixes. It conflicts with chat line commands in the client itself.

henke37 avatar Mar 11 '18 15:03 henke37

This is covered overall by #2, this doesn't make sense to add.

FireController1847 avatar Mar 11 '18 20:03 FireController1847

#2 talks about not having "unknown command" messages and not responding to un-prefixed messages. I don't really see how that's related to this issue.

eritbh avatar Mar 11 '18 21:03 eritbh

I'm talking about the Number 2 on the readme. It just happened to accidentally tag that issue.

  1. Use unique prefixes. Single-character prefixes such as !, $ and . are commonplace for activating commands and lead to overlaps with other bots. Should you opt to use a prefix for your bot, consider using words (owl) or unique Unicode characters (¨). Also, you should avoid using # or @ as prefixes since they can be used to mention a channel or a member. Ideally, your bot's prefix should be configurable on a server-by-server basis, so that the server owners can ensure every bot has its own unique prefix of their choice.

FireController1847 avatar Mar 11 '18 21:03 FireController1847

Possibly, instead of creating an entire point, we could just add / as one of the "also, you should avoid" points.

FireController1847 avatar Mar 11 '18 21:03 FireController1847

Yeah, that sounds good to me.

eritbh avatar Mar 11 '18 21:03 eritbh

This can probably be closed per the discussion on #30

eritbh avatar Apr 12 '18 12:04 eritbh

😩

paixlukee avatar Sep 09 '18 05:09 paixlukee

The Interactions API is coming out, so I thought I'd mention that.

splatterxl avatar Dec 10 '20 19:12 splatterxl