|
1 | | -import { ChannelType, InteractionContextType, PermissionsBitField, SlashCommandBuilder } from "discord.js"; |
| 1 | +import {ChannelType, InteractionContextType, PermissionsBitField, SlashCommandBuilder} from "discord.js"; |
2 | 2 |
|
3 | 3 | export default { |
4 | | - help: { |
5 | | - name: 'Leave', |
6 | | - description: 'Leave Steup', |
7 | | - usage: '/leave', |
8 | | - examples: [], |
9 | | - aliases: [], |
10 | | - docsLink: 'https://docs.disbot.app/docs/commands/leave' |
11 | | - }, |
12 | | - data: new SlashCommandBuilder() |
13 | | - .setName("leave") |
14 | | - .setDescription("Leave Steup") |
15 | | - .setDescriptionLocalizations({ de: "Leave System Setup" }) |
16 | | - .setContexts(InteractionContextType.Guild) |
17 | | - .setDefaultMemberPermissions(PermissionsBitField.Flags.ManageGuild) |
| 4 | + help: { |
| 5 | + name: 'Leave', |
| 6 | + description: 'Leave Steup', |
| 7 | + usage: '/leave', |
| 8 | + examples: [], |
| 9 | + aliases: [], |
| 10 | + docsLink: 'https://docs.disbot.app/docs/commands/leave' |
| 11 | + }, |
| 12 | + data: new SlashCommandBuilder() |
| 13 | + .setName("leave") |
| 14 | + .setDescription("Leave Steup") |
| 15 | + .setDescriptionLocalizations({de: "Leave System Setup"}) |
| 16 | + .setContexts(InteractionContextType.Guild) |
| 17 | + .setDefaultMemberPermissions(PermissionsBitField.Flags.ManageGuild) |
18 | 18 |
|
19 | | - .addSubcommand((subCommand) => |
20 | | - subCommand |
21 | | - .setName("message") |
22 | | - .setDescription("Use a Message for the Leave System") |
23 | | - .setDescriptionLocalizations({ |
24 | | - de: "Nutze eine Nachricht für das Leave System" |
25 | | - }) |
| 19 | + .addSubcommand((subCommand) => |
| 20 | + subCommand |
| 21 | + .setName("message") |
| 22 | + .setDescription("Use a Message for the Leave System") |
| 23 | + .setDescriptionLocalizations({ |
| 24 | + de: "Nutze eine Nachricht für das Leave System" |
| 25 | + }) |
26 | 26 |
|
27 | | - .addChannelOption((options) => |
28 | | - options |
29 | | - .setName("channel") |
30 | | - .setDescription("Set the Leave Channel") |
31 | | - .setDescriptionLocalizations({ de: "Setze den Leave Channel" }) |
32 | | - .addChannelTypes( |
33 | | - ChannelType.GuildText, |
34 | | - ChannelType.GuildAnnouncement |
35 | | - ) |
36 | | - .setRequired(true) |
| 27 | + .addChannelOption((options) => |
| 28 | + options |
| 29 | + .setName("channel") |
| 30 | + .setDescription("Set the Leave Channel") |
| 31 | + .setDescriptionLocalizations({de: "Setze den Leave Channel"}) |
| 32 | + .addChannelTypes( |
| 33 | + ChannelType.GuildText, |
| 34 | + ChannelType.GuildAnnouncement |
| 35 | + ) |
| 36 | + .setRequired(true) |
| 37 | + ) |
37 | 38 | ) |
38 | | - ) |
39 | | - .addSubcommand((subCommand) => |
40 | | - subCommand |
41 | | - .setName("image") |
42 | | - .setDescription("OoO, This Command is currently disabled because we are re-coding the image generation") |
43 | | - .setDescriptionLocalizations({ |
44 | | - de: "OoO, This Command is currently disabled because we are re-coding the image generation" |
45 | | - }) |
| 39 | + .addSubcommand((subCommand) => |
| 40 | + subCommand |
| 41 | + .setName("image") |
| 42 | + .setDescription("Create a Image to your welcome message") |
| 43 | + .setDescriptionLocalizations({ |
| 44 | + de: "Erstelle ein Image zu deiner Willkommens nachricht" |
| 45 | + }) |
46 | 46 |
|
47 | | - .addChannelOption((options) => |
48 | | - options |
49 | | - .setName("channel") |
50 | | - .setDescription("Set the Willkommen Channel") |
51 | | - .setDescriptionLocalizations({ de: "Setze den Willkommen Channel" }) |
52 | | - .addChannelTypes( |
53 | | - ChannelType.GuildText, |
54 | | - ChannelType.GuildAnnouncement |
55 | | - ) |
56 | | - .setRequired(true) |
| 47 | + .addChannelOption((options) => |
| 48 | + options |
| 49 | + .setName("channel") |
| 50 | + .setDescription("Set the Willkommen Channel") |
| 51 | + .setDescriptionLocalizations({de: "Setze den Willkommen Channel"}) |
| 52 | + .addChannelTypes( |
| 53 | + ChannelType.GuildText, |
| 54 | + ChannelType.GuildAnnouncement |
| 55 | + ) |
| 56 | + .setRequired(true) |
| 57 | + ) |
57 | 58 | ) |
58 | | - ) |
59 | 59 |
|
60 | | - .addSubcommand((subCommand) => |
61 | | - subCommand |
62 | | - .setName("remove") |
63 | | - .setDescription("Remove the Messages from the Database.") |
64 | | - .setDescriptionLocalizations({ |
65 | | - de: "Entferne die Nachrichten aus der Datenbank." |
66 | | - }) |
67 | | - ) |
| 60 | + .addSubcommand((subCommand) => |
| 61 | + subCommand |
| 62 | + .setName("remove") |
| 63 | + .setDescription("Remove the Messages from the Database.") |
| 64 | + .setDescriptionLocalizations({ |
| 65 | + de: "Entferne die Nachrichten aus der Datenbank." |
| 66 | + }) |
| 67 | + ) |
68 | 68 |
|
69 | | - .addSubcommand((subCommand) => |
70 | | - subCommand |
71 | | - .setName("toggle") |
72 | | - .setDescription("Toggle Leave System") |
73 | | - .setDescriptionLocalizations({ |
74 | | - de: "Schalte Leave System aus/an" |
75 | | - }) |
76 | | - .addStringOption((option) => |
77 | | - option |
78 | | - .setName("toggle") |
79 | | - .setDescription("Toggle Leave System") |
80 | | - .setDescriptionLocalizations({ |
81 | | - de: "Schalte Leave System aus/an" |
82 | | - }) |
83 | | - .setRequired(true) |
84 | | - .addChoices( |
85 | | - { |
86 | | - name: "✅ Activate the System", |
87 | | - value: "on", |
88 | | - name_localizations: { de: "✅ Aktiviere das System" } |
89 | | - }, |
90 | | - { |
91 | | - name: "❌ Deactivate the System", |
92 | | - value: "off", |
93 | | - name_localizations: { de: "❌ Deaktiviere das System" } |
94 | | - } |
95 | | - ) |
| 69 | + .addSubcommand((subCommand) => |
| 70 | + subCommand |
| 71 | + .setName("toggle") |
| 72 | + .setDescription("Toggle Leave System") |
| 73 | + .setDescriptionLocalizations({ |
| 74 | + de: "Schalte Leave System aus/an" |
| 75 | + }) |
| 76 | + .addStringOption((option) => |
| 77 | + option |
| 78 | + .setName("toggle") |
| 79 | + .setDescription("Toggle Leave System") |
| 80 | + .setDescriptionLocalizations({ |
| 81 | + de: "Schalte Leave System aus/an" |
| 82 | + }) |
| 83 | + .setRequired(true) |
| 84 | + .addChoices( |
| 85 | + { |
| 86 | + name: "✅ Activate the System", |
| 87 | + value: "on", |
| 88 | + name_localizations: {de: "✅ Aktiviere das System"} |
| 89 | + }, |
| 90 | + { |
| 91 | + name: "❌ Deactivate the System", |
| 92 | + value: "off", |
| 93 | + name_localizations: {de: "❌ Deaktiviere das System"} |
| 94 | + } |
| 95 | + ) |
| 96 | + ) |
96 | 97 | ) |
97 | | - ) |
98 | 98 | }; |
0 commit comments