1
1
mirror of https://github.com/Burn-E99/GroupUp.git synced 2026-01-06 19:37:54 -05:00

Move tokenMap to own file since its used everywhere

tokenCleanup is now a separate module of code to make it better organized.
This commit is contained in:
Ean Milligan (Bastion)
2023-04-25 03:08:15 -04:00
parent 3475f84623
commit ce0a3cca1d
8 changed files with 51 additions and 55 deletions

View File

@ -19,6 +19,7 @@ const execute = async (bot: Bot, interaction: Interaction) => {
logChannelId: 0n,
};
// Make sure this is being done by the owner or a Group Up Manager
if (interaction.member.user.id === ownerId || (lfgChannelSetting.managed && interaction.member.roles.includes(lfgChannelSetting.managerRoleId))) {
const actionByManager = interaction.member.user.id !== ownerId;
// Open Delete Confirmation