/summon: fix command being canceled wrongly in execution
the problem was that undefined value was compared to number, making the expression return true
This commit is contained in:
parent
74fe8e3e8b
commit
46bb5c867d
1 changed files with 2 additions and 2 deletions
|
@ -177,7 +177,7 @@ export async function queueRequest(request: apiRequest) {
|
||||||
|
|
||||||
if (!canReplyToRequest(request)) return;
|
if (!canReplyToRequest(request)) return;
|
||||||
|
|
||||||
if (!(request instanceof DiscordApi.Message) && channelsRunning.get(request.channelId)?.length !== 0) {
|
if (!(request instanceof DiscordApi.Message) && channelsRunning.get(request.channelId) && channelsRunning.get(request.channelId)?.length !== 0) {
|
||||||
requestReply(
|
requestReply(
|
||||||
request as RequestMessage,
|
request as RequestMessage,
|
||||||
{
|
{
|
||||||
|
@ -190,7 +190,7 @@ export async function queueRequest(request: apiRequest) {
|
||||||
{
|
{
|
||||||
ephemeral: true,
|
ephemeral: true,
|
||||||
},
|
},
|
||||||
)
|
).catch(() => {/*GRACEFAIL: don't do anything*/});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue