mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 18:59:19 +00:00
✨ feat: Add unfinished purge message command
This commit is contained in:
@@ -44,6 +44,11 @@ export const GLOBAL_COMMANDS: Object[] = [
|
||||
option.setName('message').setDescription('Message you want me to say').setRequired(true)
|
||||
),
|
||||
|
||||
new SlashCommandBuilder()
|
||||
.setName('purge')
|
||||
.setDescription('Purge messages')
|
||||
.addStringOption((option) => option.setName('message').setDescription('Amount to purge').setRequired(true)),
|
||||
|
||||
new SlashCommandBuilder()
|
||||
.setName('osu')
|
||||
.setDescription('Interact with the game osu!')
|
||||
|
||||
@@ -152,9 +152,8 @@ export async function sendMessage(
|
||||
else message = await channel.send(options);
|
||||
} catch (error) {
|
||||
if (typeof user === 'undefined') {
|
||||
return Logger.error(
|
||||
`Cannot find available destinations to send the message CID: ${channel.id} C_ERR: ${error}`
|
||||
);
|
||||
Logger.error(`Cannot find available destinations to send the message CID: ${channel.id} C_ERR: ${error}`);
|
||||
return;
|
||||
}
|
||||
try {
|
||||
message = await user.send(options);
|
||||
|
||||
Reference in New Issue
Block a user