Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/methods/hookInteractionListeners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function hookInteractionListeners(dbi: DBI<NamespaceEnums>): () => any {
let data = parsedId?.data;
let v2 = parsedId?.v2 || false;

let other = {};
let other = { ...(dbiInter.other ?? {}) };

if (
!(await dbi.events.trigger("beforeInteraction", {
Expand Down Expand Up @@ -231,6 +231,9 @@ export function hookInteractionListeners(dbi: DBI<NamespaceEnums>): () => any {
v2
};

if (inter.isChatInputCommand() && !(inter as any).fake) {
(inter as any).commandMessage = null;
}

if (dbiInter.type === "HTMLComponentsV2") {
// For HTMLComponentsV2, first element of data is the element name (button name, etc.)
Expand Down