discord-bot-best-practices
discord-bot-best-practices copied to clipboard
Avoid forward slash as a prefix
Add the forward slash as a character to avoid for prefixes. It conflicts with chat line commands in the client itself.
This is covered overall by #2, this doesn't make sense to add.
#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.
I'm talking about the Number 2 on the readme. It just happened to accidentally tag that issue.
-
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.
Possibly, instead of creating an entire point, we could just add /
as one of the "also, you should avoid" points.
Yeah, that sounds good to me.
This can probably be closed per the discussion on #30
😩
The Interactions API is coming out, so I thought I'd mention that.