slight file reorg, start work on event creation
This commit is contained in:
parent
d65a8e0cb3
commit
5303a20234
|
@ -1,10 +1,11 @@
|
||||||
export type LFGActivity = {
|
// Activity should either have maxMembers or options specified, NOT both
|
||||||
|
export type Activity = {
|
||||||
name: string;
|
name: string;
|
||||||
maxMembers?: number;
|
maxMembers?: number;
|
||||||
options?: Array<LFGActivity>;
|
options?: Array<Activity>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const LFGActivities: Array<LFGActivity> = [
|
export const Activities: Array<Activity> = [
|
||||||
{
|
{
|
||||||
name: 'Destiny 2',
|
name: 'Destiny 2',
|
||||||
options: [
|
options: [
|
|
@ -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,
|
||||||
|
};
|
Loading…
Reference in New Issue