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

Add button systems, add game selection, add initial details modal

This commit is contained in:
Ean Milligan (Bastion)
2023-01-31 03:32:53 -05:00
parent 5303a20234
commit d712b116b6
9 changed files with 221 additions and 32 deletions

View File

@ -6,8 +6,9 @@ import info from './info.ts';
import report from './report.ts';
import setup from './setup.ts';
import deleteCmd from './delete.ts';
import { createEventCommand } from '../buttons/event-creation/step1-gameSelection.ts';
export const commands: Array<Command> = [deleteCmd, info, report, setup];
export const commands: Array<Command> = [deleteCmd, info, report, setup, createEventCommand];
export const createSlashCommands = async (bot: Bot) => {
const globalCommands: MakeRequired<CreateApplicationCommand, 'name'>[] = [];

View File

@ -18,6 +18,7 @@ import { failColor, infoColor2, somethingWentWrong, successColor } from '../comm
import { dbClient, lfgChannelSettings, queries } from '../db.ts';
import { CommandDetails } from '../types/commandTypes.ts';
import utils from '../utils.ts';
import { customId as gameSelId } from '../buttons/event-creation/step1-gameSelection.ts';
const withoutMgrRole = 'without-manager-role';
const withMgrRole = 'with-manager-role';
@ -266,7 +267,7 @@ The Discord Slash Command system will ensure you provide all the required detail
components: [{
type: MessageComponentTypes.Button,
label: createNewEventBtn,
customId: 'temp', // TODO: set this
customId: gameSelId,
style: ButtonStyles.Success,
}],
}],