slight file reorg, start work on event creation

This commit is contained in:
Ean Milligan (Bastion) 2023-01-30 01:17:22 -05:00
parent d65a8e0cb3
commit 5303a20234
2 changed files with 29 additions and 3 deletions

View File

@ -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: [

View 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,
};