winglessraven / AMP-Discord-Bot

Discord Bot plugin for AMP
38 stars 6 forks source link

Bot connected, but cannot use slash commands #106

Closed t4m0thy closed 3 months ago

t4m0thy commented 3 months ago

Describe the bug Slash command cause an error in the application

To Reproduce Steps to reproduce the behaviour: configure discord bot in AMP and on Discord server Bot is connected run "/info" in text channel discord will time out with "The application did not respond"

Expected behaviour Some manner of info panel

Screenshots image image image image image

AMPLOG2.log

AMP Instance Info (please complete the following information):

Additional context It's entirely possible I've missed something (not a case of it having worked previously, new setup)

winglessraven commented 3 months ago

Can you add the logs from the AMP instance? That might help see what's going on.

t4m0thy commented 3 months ago

The attachment amplog2.log is a full log from the instance

winglessraven commented 3 months ago

Totally missed that xD

The log suggests there is a permission missing on the Discord side: A SlashCommandExecuted handler has thrown an unhandled exception.: Discord.Net.HttpException: The server responded with error 50013: Missing Permissions

Looks like the bot does not have permission to send messages in the channel you are running the command in.

t4m0thy commented 3 months ago

And there's me trying to add more permissions to the bot! not even considering the obvious. Thank you very much for helping me even though it had nothing to do with your app. Have a beer on me

winglessraven commented 3 months ago

Glad you got it working. Thanks very much, appreciate it!