turn done messages into ephemerals
This commit is contained in:
parent
7f653930f0
commit
285e6796d0
|
@ -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,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
|
@ -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,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
|
@ -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,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
|
@ -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