Nihlus / digos-ambassador

Homegrown Discord bot for the DIGOS community.
GNU Affero General Public License v3.0
8 stars 7 forks source link

Bot should accept commands in PM or throw a better error message #98

Closed Ryder17z closed 2 years ago

Ryder17z commented 2 years ago

Describe the bug For fun I tried just messaging the bot with the message !ch list

It generated a bugreport only.

Expected behavior Either accept the commands in DM or reject it with a better error message

Automatic bug report

Generated at: 29/03/2022 09:32:12 Bot version: 5.0.0.0 Full command: !ch list

### Error
{
  "IsSuccess": false,
  "Error": {
    "Message": "This command was invoked in a channel of type \u0027DM\u0027, but it can only be used in \u0027GuildText, GuildVoice, GuildCategory, GuildNews, GuildStore, GuildPrivateThread, GuildPublicThread, GuildNewsThread, GuildStageVoice\u0027"
  },
  "Inner": null
}