You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With interactionResponseType.deferredChannelMessageWithSource (and probably deferredUpdateMessage) the payload.data is optional (it will be ignored).
Current implementation in Discordia doesn't allow this.
Fix:
- local message, files = checkMessage(payload.data, self.defaultAllowedMentions)+ local message, files = payload.data and checkMessage(payload.data, self.defaultAllowedMentions)
The text was updated successfully, but these errors were encountered:
Thanks for the issue. I expect to fix this and related inconsistencies as I refactor much of the payload input checking/resolving. It's kind of a mess of functions and files right now. I'll keep this open as a reminder.
https://github.com/SinisterRectus/Discordia/blob/dev/libs/client/CommandClient.lua#L232
With
interactionResponseType.deferredChannelMessageWithSource
(and probablydeferredUpdateMessage
) thepayload.data
is optional (it will be ignored).Current implementation in Discordia doesn't allow this.
Fix:
The text was updated successfully, but these errors were encountered: