We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94c227d commit b7c7ffeCopy full SHA for b7c7ffe
1 file changed
src/commands.ts
@@ -399,21 +399,19 @@ const commands: Record<string, Command> = {
399
} else {
400
await interaction.reply({
401
flags: MessageFlags.Ephemeral,
402
- content: `The target channel is not a text channel! ${isDm}`,
+ content: "The target channel is not a text channel!",
403
});
404
405
return;
406
}
407
408
// Before attempting to add the subscription, if it's a DM, check if it's already in the database. If not add it
409
if (isDm) {
410
- console.log("CHECKING DM");
411
const data = (
412
await discordCheckIfDmChannelExists(discordChannelId)
413
).data;
414
415
- if (!data) {
416
- console.log("ADDING DM");
+ if (!data.length) {
417
await discordAddNewGuild(discordChannelId, true);
418
419
0 commit comments