mirror of
https://github.com/Burn-E99/GroupUp.git
synced 2026-01-06 19:37:54 -05:00
slight file reorg, start work on event creation
This commit is contained in:
@ -1,10 +1,11 @@
|
||||
export type LFGActivity = {
|
||||
// Activity should either have maxMembers or options specified, NOT both
|
||||
export type Activity = {
|
||||
name: string;
|
||||
maxMembers?: number;
|
||||
options?: Array<LFGActivity>;
|
||||
options?: Array<Activity>;
|
||||
};
|
||||
|
||||
export const LFGActivities: Array<LFGActivity> = [
|
||||
export const Activities: Array<Activity> = [
|
||||
{
|
||||
name: 'Destiny 2',
|
||||
options: [
|
||||
25
src/buttons/event-creation/step1.ts
Normal file
25
src/buttons/event-creation/step1.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import config from '../../../config.ts';
|
||||
import { ApplicationCommandFlags, ApplicationCommandTypes, Bot, Interaction, InteractionResponseTypes } from '../../../deps.ts';
|
||||
import { CommandDetails } from "../../types/commandTypes.ts";
|
||||
|
||||
|
||||
export const customId = 'gameSel';
|
||||
const details: CommandDetails = {
|
||||
name: 'create-event',
|
||||
description: 'Creates a new event in this channel.',
|
||||
type: ApplicationCommandTypes.ChatInput,
|
||||
};
|
||||
|
||||
const execute = (bot: Bot, interaction: Interaction) => {
|
||||
|
||||
};
|
||||
|
||||
export const createEventCommand = {
|
||||
details,
|
||||
execute,
|
||||
};
|
||||
|
||||
export const createEventButton = {
|
||||
customId,
|
||||
execute,
|
||||
};
|
||||
Reference in New Issue
Block a user