10 |
|
|
11 |
export async function notAFK(client: DiscordClient, msg: Message | CommandInteraction, data: any) { |
export async function notAFK(client: DiscordClient, msg: Message | CommandInteraction, data: any) { |
12 |
client.db.get('DELETE FROM afk WHERE user_id = ?', [msg.member!.user.id], async (err: any) => { |
client.db.get('DELETE FROM afk WHERE user_id = ?', [msg.member!.user.id], async (err: any) => { |
13 |
await msg.channel!.send({ |
await msg.reply({ |
14 |
embeds: [ |
embeds: [ |
15 |
new MessageEmbed() |
new MessageEmbed() |
16 |
.setDescription('You\'re no longer AFK. You had **' + data.mentions + '** mentions in the servers where SudoBot is joined.') |
.setDescription('You\'re no longer AFK. You had **' + data.mentions + '** mentions in the servers where SudoBot is joined.') |