turn done messages into ephemerals
This commit is contained in:
parent
7f653930f0
commit
285e6796d0
|
@ -4,7 +4,7 @@ import {
|
||||||
SlashCommandBuilder,
|
SlashCommandBuilder,
|
||||||
SlashCommandStringOption,
|
SlashCommandStringOption,
|
||||||
} from 'discord.js';
|
} from 'discord.js';
|
||||||
import { Bot } from "../bot";
|
import {Bot} from "../bot";
|
||||||
|
|
||||||
const option = new SlashCommandStringOption()
|
const option = new SlashCommandStringOption()
|
||||||
.setName('word')
|
.setName('word')
|
||||||
|
@ -27,6 +27,9 @@ export default {
|
||||||
bot.getDB().run('DELETE FROM library WHERE TRUE');
|
bot.getDB().run('DELETE FROM library WHERE TRUE');
|
||||||
bot.setCounter(0);
|
bot.setCounter(0);
|
||||||
console.log('completely cleared library')
|
console.log('completely cleared library')
|
||||||
return await interaction.reply('Done!');
|
return await interaction.reply({
|
||||||
|
content: 'Done!',
|
||||||
|
ephemeral: true,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
|
@ -4,7 +4,7 @@ import {
|
||||||
SlashCommandBuilder,
|
SlashCommandBuilder,
|
||||||
SlashCommandIntegerOption,
|
SlashCommandIntegerOption,
|
||||||
} from 'discord.js';
|
} from 'discord.js';
|
||||||
import { Bot } from "../bot";
|
import {Bot} from "../bot";
|
||||||
|
|
||||||
const option = (new SlashCommandIntegerOption())
|
const option = (new SlashCommandIntegerOption())
|
||||||
.setName('amount')
|
.setName('amount')
|
||||||
|
@ -20,7 +20,7 @@ export default {
|
||||||
async execute(interaction: ChatInputCommandInteraction) {
|
async execute(interaction: ChatInputCommandInteraction) {
|
||||||
const bot = Bot.getInstance();
|
const bot = Bot.getInstance();
|
||||||
bot.getDB().run(
|
bot.getDB().run(
|
||||||
'INSERT OR REPLACE INTO config (configKey, value) VALUES (?, ?)',
|
'INSERT OR REPLACE INTO config (configkey, value) VALUES (?, ?)',
|
||||||
[
|
[
|
||||||
'autoEmbedMessages',
|
'autoEmbedMessages',
|
||||||
interaction.options.data.at(0).value,
|
interaction.options.data.at(0).value,
|
||||||
|
@ -30,6 +30,9 @@ export default {
|
||||||
bot.setAutoEmbedMessages(parseInt(interaction.options.data.at(0).value.toString()));
|
bot.setAutoEmbedMessages(parseInt(interaction.options.data.at(0).value.toString()));
|
||||||
console.log('set auto embed messages to ' + interaction.options.data.at(0).value);
|
console.log('set auto embed messages to ' + interaction.options.data.at(0).value);
|
||||||
|
|
||||||
return await interaction.reply('Done!');
|
return await interaction.reply({
|
||||||
|
content: 'Done!',
|
||||||
|
ephemeral: true,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
|
@ -4,8 +4,8 @@ import {
|
||||||
SlashCommandBuilder,
|
SlashCommandBuilder,
|
||||||
SlashCommandChannelOption,
|
SlashCommandChannelOption,
|
||||||
} from 'discord.js';
|
} from 'discord.js';
|
||||||
import { ChannelType } from 'discord-api-types/v10';
|
import {ChannelType} from 'discord-api-types/v10';
|
||||||
import { Bot } from "../bot";
|
import {Bot} from "../bot";
|
||||||
|
|
||||||
const channelOption = (new SlashCommandChannelOption())
|
const channelOption = (new SlashCommandChannelOption())
|
||||||
.setName('channel')
|
.setName('channel')
|
||||||
|
@ -22,7 +22,7 @@ export default {
|
||||||
async execute(interaction: ChatInputCommandInteraction) {
|
async execute(interaction: ChatInputCommandInteraction) {
|
||||||
const bot = Bot.getInstance();
|
const bot = Bot.getInstance();
|
||||||
bot.getDB().run(
|
bot.getDB().run(
|
||||||
'INSERT OR REPLACE INTO config (configKey, value) VALUES (?, ?)',
|
'INSERT OR REPLACE INTO config (configkey, value) VALUES (?, ?)',
|
||||||
[
|
[
|
||||||
'channelId',
|
'channelId',
|
||||||
interaction.options.data.at(0).value,
|
interaction.options.data.at(0).value,
|
||||||
|
@ -32,6 +32,9 @@ export default {
|
||||||
bot.setChannel(interaction.options.data.at(0).value.toString());
|
bot.setChannel(interaction.options.data.at(0).value.toString());
|
||||||
console.log('set channel to ' + interaction.options.data.at(0).value);
|
console.log('set channel to ' + interaction.options.data.at(0).value);
|
||||||
|
|
||||||
return await interaction.reply('Done!');
|
return await interaction.reply({
|
||||||
|
content: 'Done!',
|
||||||
|
ephemeral: true,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
|
@ -4,7 +4,7 @@ import {
|
||||||
SlashCommandBuilder,
|
SlashCommandBuilder,
|
||||||
SlashCommandStringOption,
|
SlashCommandStringOption,
|
||||||
} from 'discord.js';
|
} from 'discord.js';
|
||||||
import { Bot } from "../bot";
|
import {Bot} from "../bot";
|
||||||
|
|
||||||
const option = (new SlashCommandStringOption())
|
const option = (new SlashCommandStringOption())
|
||||||
.setName('prefix')
|
.setName('prefix')
|
||||||
|
@ -20,7 +20,7 @@ export default {
|
||||||
async execute(interaction: ChatInputCommandInteraction) {
|
async execute(interaction: ChatInputCommandInteraction) {
|
||||||
const bot = Bot.getInstance();
|
const bot = Bot.getInstance();
|
||||||
bot.getDB().run(
|
bot.getDB().run(
|
||||||
'INSERT OR REPLACE INTO config (configKey, value) VALUES (?, ?)',
|
'INSERT OR REPLACE INTO config (configkey, value) VALUES (?, ?)',
|
||||||
[
|
[
|
||||||
'ignorePrefix',
|
'ignorePrefix',
|
||||||
interaction.options.data.at(0).value,
|
interaction.options.data.at(0).value,
|
||||||
|
@ -30,6 +30,9 @@ export default {
|
||||||
bot.setIgnorePrefix(interaction.options.data.at(0).value.toString());
|
bot.setIgnorePrefix(interaction.options.data.at(0).value.toString());
|
||||||
console.log('set ignore prefix to ' + interaction.options.data.at(0).value);
|
console.log('set ignore prefix to ' + interaction.options.data.at(0).value);
|
||||||
|
|
||||||
return await interaction.reply('Done!');
|
return await interaction.reply({
|
||||||
|
content: 'Done!',
|
||||||
|
ephemeral: true,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
|
@ -30,6 +30,9 @@ export default {
|
||||||
bot.setModRole(interaction.options.data.at(0).value.toString());
|
bot.setModRole(interaction.options.data.at(0).value.toString());
|
||||||
console.log('set mod role to ' + interaction.options.data.at(0).value);
|
console.log('set mod role to ' + interaction.options.data.at(0).value);
|
||||||
|
|
||||||
return await interaction.reply('Done!');
|
return await interaction.reply({
|
||||||
|
content: 'Done!',
|
||||||
|
ephemeral: true,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
Loading…
Reference in New Issue