1
1
mirror of https://github.com/Burn-E99/GroupUp.git synced 2026-01-08 04:17:54 -05:00

Join Request Responses added

Event owner can now approve or deny requests
Made all event buttons common strings
This commit is contained in:
Ean Milligan (Bastion)
2023-04-14 15:52:45 -04:00
parent 7c999ed27b
commit 126689171d
7 changed files with 110 additions and 10 deletions

View File

@ -18,6 +18,7 @@ import { dbClient, generateGuildSettingKey, lfgChannelSettings, queries } from '
import { CommandDetails } from '../types/commandTypes.ts';
import utils from '../utils.ts';
import { customId as gameSelId } from '../buttons/event-creation/step1-gameSelection.ts';
import { alternateEventBtnStr, joinEventBtnStr, leaveEventBtnStr, requestToJoinEventBtnStr } from '../buttons/eventUtils.ts';
const withoutMgrRole = 'without-manager-role';
const withMgrRole = 'with-manager-role';
@ -91,14 +92,14 @@ const execute = async (bot: Bot, interaction: Interaction) => {
const introFields: Array<DiscordEmbedField> = [{
name: 'Joining Events:',
value:
'To join an event, simply click on the `Join` or `Request to Join` button. If you try to join a full event, you will be placed in the Alternates column with an `*` next to your name. Members with an `*` next to their name will automatically get promoted to the Joined list if someone leaves the event.',
`To join an event, simply click on the \`${joinEventBtnStr}\` or \`${requestToJoinEventBtnStr}\` button. If you try to join a full event, you will be placed in the Alternates column with an \`*\` next to your name. Members with an \`*\` next to their name will automatically get promoted to the Joined list if someone leaves the event.`,
}, {
name: 'Leaving Events:',
value: 'To leave an event, simply click on the `Leave` button.',
value: `To leave an event, simply click on the \`${leaveEventBtnStr}\` button.`,
inline: true,
}, {
name: 'Joining Events as an Alternate:',
value: 'To join as a backup or indicate you might be available, simply click on the `Join as Alternate` button.',
value: `To join as a backup or indicate you might be available, simply click on the \`${alternateEventBtnStr}\` button.`,
inline: true,
}, {
name: 'Editing/Deleting your event:',