Henrik-3 / valorant-labs

Multilanguage VALORANT Discord Bot with Server Status, Autonews and much more, everything packed in a custom image
67 stars 19 forks source link

Unable to edit autorole #34

Closed teknogeek closed 2 years ago

teknogeek commented 2 years ago

image

There is a bug which causes the embed message to get edited to an ephemeral reply. This makes it impossible to right-click and edit the autorole embed message

Henrik-3 commented 2 years ago

If no not ephemeral message is send make sure the bot has SEND_MESSAGES Permissions

Henrik-3 commented 2 years ago

I need to add a permissions check for that

teknogeek commented 2 years ago

Yes, it has SEND_MESSAGES, but the message is edited here: https://github.com/Henrik-3/valorant-labs/blob/v4/commands/slash/autoroles.js#L113

instead of sending a new message

Henrik-3 commented 2 years ago

There is a difference between interactions and a normal message that is send in the channel which is here: https://github.com/Henrik-3/valorant-labs/blob/v4/commands/slash/autoroles.js#L79

Henrik-3 commented 2 years ago

Can u send me the channel id where u try to execute the command?

teknogeek commented 2 years ago

1027598970781966406

Henrik-3 commented 2 years ago

Seems like there was a conflict between the djs dev version and the normal one, can u try to execute the command again?

teknogeek commented 2 years ago

There we go, fixed now. Thank you!