mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-18 00:31:00 -05:00
Hide username for anonymity reasons
This commit is contained in:
parent
9d1c8dd238
commit
a2fe3afdb7
@ -128,7 +128,7 @@ export default class Developer {
|
||||
const member = interaction.options.getMember('member');
|
||||
const message = interaction.options.getString('message');
|
||||
const int = await interaction.reply({content: '*Sending...*', fetchReply: true});
|
||||
client.users.cache.get(member.id).send(`${message}\n╰ ${interaction.member.displayName}`).then(()=>int.edit(`Successfully sent a DM to **${member.user.username}** with the following message:\n\`\`\`${message}\`\`\``)).catch((e:Error)=>int.edit(`\`${e.message}\``))
|
||||
client.users.cache.get(member.id).send(`${message}\n╰ *Pseudonymous User*`).then(()=>int.edit(`Successfully sent a DM to **${member.user.username}** with the following message:\n\`\`\`${message}\`\`\``)).catch((e:Error)=>int.edit(`\`${e.message}\``))
|
||||
},
|
||||
modify_rank_msgs: async()=>{
|
||||
if (interaction.guildId !== client.config.dcServer.id) return interaction.reply({content: 'This command is only available in the main server.', ephemeral: true});
|
||||
|
Loading…
Reference in New Issue
Block a user