forked from cadence/out-of-your-element
Comparison of all the stuff I did. #6
1 changed files with 1 additions and 1 deletions
|
|
@ -281,7 +281,7 @@ const commands = [{
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (attachedToMessage) return discord.snow.channel.createThreadWithMessage(channelID, attachedToMessage, {name: words.slice(1).join(" ")})
|
if (attachedToMessage) await discord.snow.channel.createThreadWithMessage(channelID, attachedToMessage, {name: words.slice(1).join(" ")})
|
||||||
else throw {code: "NO_ATTACH_TARGET", was_supposed_to_be: attachedToEvent};
|
else throw {code: "NO_ATTACH_TARGET", was_supposed_to_be: attachedToEvent};
|
||||||
}
|
}
|
||||||
catch (e){
|
catch (e){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue