Slash commands and ordinary messages arrive differently
A slash command triggers an interaction addressed to your Discord application. A prefix command such as !help is ordinary message text. If the bot only listens for interactions, it has no handler for that text. A bot that parses ordinary guild messages generally also needs the guild message event subscription and access to message content.
The Bothosting discord.js example deliberately listens for interactions and registers /ping. Typing !ping into a channel sends an ordinary message. A silent bot is the expected result for the unmodified example.
Find out whether the event or its content is missing
- Check the deployed source for the event handler your feature uses. For discord.js prefix commands, look for a message-create handler and the guild messages intent in the client configuration.
- In a test channel the bot can view, log a count of message events received. Send a plain message from a human account. If the count stays at zero, check event subscriptions, channel access and the running revision.
- If the event arrives but ordinary message text is empty, check the message content intent in the client and in the application’s Bot settings. Discord may require approval for this privileged intent. Restart after changing the client configuration.
Compare two messages in the same channel
Try one normal prefix command without a mention and one message that mentions the bot. Discord makes message content available in some cases, including a direct mention. A reply only to the mention can therefore be a clue about content access. If the handler sees both inputs, inspect the prefix comparison and permission to send a response in that channel.
A bot that only needs a few explicit actions can expose those actions as slash commands and read their arguments from the interaction. Discord lists the content fields and exceptions in its message content intent reference.