-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathoffice.ts
49 lines (47 loc) · 1.53 KB
/
office.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { container } from '@sapphire/framework';
import { EmbedBuilder } from 'discord.js';
import {
CodeyCommandDetails,
SapphireMessageExecuteType,
SapphireMessageResponse,
} from '../../codeyCommand';
import { DEFAULT_EMBED_COLOUR } from '../../utils/embeds';
const officeExecuteCommand: SapphireMessageExecuteType = async (
_client,
_messageFromUser,
_args,
): Promise<SapphireMessageResponse> => {
const officeEmbed = new EmbedBuilder()
.setColor(DEFAULT_EMBED_COLOUR)
.setTitle(`About the CSC Office`)
.setThumbnail('https://cdn.discordapp.com/emojis/869377257586704407.png')
.setDescription(`Find us in MC 3036/3037!`)
.addFields([
{
name: `What we offer:`,
value: `
• Pop for just 50 cents
• Informative books
• 5 computer terminals
• (sometimes) super knowledgeable people `,
},
{
name: `Call us!`,
value: `(519) 888-4567 x33870`,
},
]);
return { embeds: [officeEmbed] };
};
export const officeCommandDetails: CodeyCommandDetails = {
name: 'office',
aliases: [],
description: 'Get information about the CSC office.',
detailedDescription: `**Examples:**
\`${container.botPrefix}office\``,
isCommandResponseEphemeral: false,
messageWhenExecutingCommand: 'Retrieving information about the office...',
executeCommand: officeExecuteCommand,
messageIfFailure: 'Could not retrieve information about office.',
options: [],
subcommandDetails: {},
};