This commit is contained in:
Christopher Cookman 2023-08-23 20:50:03 -06:00
parent 1355041238
commit bfdb714fab
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -742,7 +742,7 @@ dcClient.on('interactionCreate', async interaction => {
content: "Extension Deleted!",
ephemeral: true
});
sendLog(`${colors.green("[INFO]")} ${interaction.user.tag} (${interaction.user.id}) deleted extension ${result.result.fetchExtension.user.extension}`)
sendLog(`${colors.green("[INFO]")} ${interaction.user.username} (${interaction.user.id}) deleted extension ${result.result.fetchExtension.user.extension}`)
// Remove the role from the user on Discord based on the ID in the config file
let role = interaction.guild.roles.cache.find(role => role.id === config.discord.roleId);
interaction.member.roles.remove(role);