#giveaway cmd dont work - It does, just you cant end or anything and it does not end ANDD theres a

1 messages · Page 1 of 1 (latest)

robust tundra
#

Link fail for commands

#

heloo?

#

@low thistle

supple helm
#

Show console error of giveaway one

robust tundra
#

ima try find it as it was yestorday

#

or should i redo

supple helm
robust tundra
#

gend dont work aswell

#

@supple helm

supple helm
#

Console error

robust tundra
#

idk abt the gend

#

that was since i had the url as thingy

#

.

#

the gend dont work if i know of and thats all rn, the invalid url is weird

supple helm
robust tundra
#

i did that and gend dont work lol

supple helm
robust tundra
#

no giveaway end error or anything

#

import { Command } from "#structures/classes/Command";
import { PermissionFlagsBits } from "discord.js";

class GiveawayEndCommand extends Command {
constructor() {
super({
name: "gend",
description: "End a giveaway immediately",
usage: "gend <message_id>",
aliases: ["giveaway-end", "giveawayend", "endgiveaway"],
category: "giveaway",
examples: ["gend 1234567890123456789"],
cooldown: 5,
userPermissions: [PermissionFlagsBits.ManageGuild],
enabledSlash: true,
slashData: {
name: "gend",
description: "End a giveaway immediately",
options: [
{
name: "message_id",
description: "The message ID of the giveaway to end",
type: 3,
required: true
}
]
}
});
}

async execute({ client, message, args }) {
if (!args[0]) {
return message.channel.send("Please provide the message ID of the giveaway to end.");
}

const messageId = args[0];

try {
  await client.giveawaysManager.end(messageId);
  return message.channel.send(`Giveaway with ID \`${messageId}\` has been ended successfully.`);
} catch (error) {
  return message.channel.send(`Failed to end the giveaway. Make sure the message ID is correct and the giveaway exists.`);
}

}

async slashExecute({ client, interaction }) {
const messageId = interaction.options.getString("message_id");

try {
  await client.giveawaysManager.end(messageId);
  return interaction.reply(`Giveaway with ID \`${messageId}\` has been ended successfully.`);
} catch (error) {
  return interaction.reply(`Failed to end the giveaway. Make sure the message ID is correct and the giveaway exists.`);
}

}
}

export default new GiveawayEndCommand();

supple helm
#

@lunar isle what'd you do?

robust tundra
#

he left

#

@supple helm

random gazelleBOT
robust tundra
#

i need help with invalid url stuff tho

#

also, aegis how do i change ts

supple helm
#

Which code

robust tundra
#

v3

#

most recent