Parent Directory
|
Revision Log
|
Patch
revision 51 by rakin, Mon Jul 29 17:28:23 2024 UTC | revision 69 by rakin, Mon Jul 29 17:28:28 2024 UTC | |
---|---|---|
# | Line 30 export async function AFK(client: Discor | Line 30 export async function AFK(client: Discor |
30 | } | } |
31 | ||
32 | client.db.get('INSERT INTO afk(user_id, date, mentions, reason) VALUES(?, ?, ?, ?)', [msg.member!.user.id, new Date().toISOString(), '0', reason === undefined ? '' : reason], async (err: any) => { | client.db.get('INSERT INTO afk(user_id, date, mentions, reason) VALUES(?, ?, ?, ?)', [msg.member!.user.id, new Date().toISOString(), '0', reason === undefined ? '' : reason], async (err: any) => { |
33 | await msg.channel!.send({ | await msg.reply({ |
34 | embeds: [ | embeds: [ |
35 | new MessageEmbed() | new MessageEmbed() |
36 | .setDescription('You\'re AFK now.' + (reason === undefined ? '' : ` Your status has been updated to: **${reason.replace(/\*/g, '\\*')}**`)) | .setDescription('You\'re AFK now.' + (reason === undefined ? '' : ` Your status has been updated to: **${reason.replace(/\*/g, '\\*')}**`)) |
|
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |