Skip to content

Commit 7c5a33e

Browse files
committed
avoid trying to edit non-existing message
1 parent f6725fe commit 7c5a33e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/commands/CommandSource.js

+3
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ class CommandSource {
130130
return this.#interaction.editReply(options);
131131
}
132132
else {
133+
if (!this.#response) {
134+
return this.#message.channel.send(options);
135+
}
133136
return this.#response.edit(options);
134137
}
135138
}

0 commit comments

Comments
 (0)