feat: removed user name something

This commit is contained in:
Ale 2023-09-05 19:51:19 +02:00
parent 2730c4373a
commit 28ed823e2b
No known key found for this signature in database
GPG key ID: 284AFB134BB2E07D

View file

@ -29,7 +29,7 @@ export async function nonCommandHandler(message : Message){
await message.channel.sendMessage({ await message.channel.sendMessage({
content: actualContent, content: actualContent,
masquerade: { masquerade: {
name: alter.name + " ( " + message.author.member.displayName + " )", name: alter.name ,
avatar: alter.profile_pic_url, avatar: alter.profile_pic_url,
color: alter.color color: alter.color
}, },
@ -38,6 +38,7 @@ export async function nonCommandHandler(message : Message){
await message.delete(); await message.delete();
} }
catch(e){ catch(e){
console.log(e)
await message.channel.sendMessage("Error: PluralCake requires at least these permissions: \n- Masquerade permissions. \n- Message editing permissions.") await message.channel.sendMessage("Error: PluralCake requires at least these permissions: \n- Masquerade permissions. \n- Message editing permissions.")
} }
} }