Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
Start using addChannelTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
RadiatedExodus committed Feb 7, 2024
1 parent fa6ddf5 commit a4247c9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
5 changes: 3 additions & 2 deletions src/commands/Moderation/ReactTo.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SlashCommandBuilder } from "discord.js";
import { ChannelType, SlashCommandBuilder } from "discord.js";
import type { MeteoriumCommand } from "..";

export const Command: MeteoriumCommand = {
Expand All @@ -25,7 +25,8 @@ export const Command: MeteoriumCommand = {
.addChannelOption((option) =>
option
.setName("channel")
.setDescription("The text/thread channel where the message you want to react to is located"),
.setDescription("The text/thread channel where the message you want to react to is located")
.addChannelTypes(ChannelType.GuildText),
),
async Callback(interaction, client) {
const reactToNS = client.Logging.GetNamespace("Commands/ReactTo");
Expand Down
5 changes: 3 additions & 2 deletions src/commands/Moderation/SayIn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SlashCommandBuilder } from "discord.js";
import { ChannelType, SlashCommandBuilder } from "discord.js";
import type { MeteoriumCommand } from "..";
import { MeteoriumEmbedBuilder } from "../../util/MeteoriumEmbedBuilder";

Expand All @@ -14,7 +14,8 @@ export const Command: MeteoriumCommand = {
.setName("channel")
.setDescription(
"Optional channel where message will be sent (if not specified it will be sent to the current channel",
),
)
.addChannelTypes(ChannelType.GuildText),
)
.addBooleanOption((option) =>
option
Expand Down
11 changes: 7 additions & 4 deletions src/commands/Moderation/Settings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SlashCommandBuilder } from "discord.js";
import { ChannelType, SlashCommandBuilder } from "discord.js";
import type { MeteoriumCommand } from "..";
import { MeteoriumEmbedBuilder } from "../../util/MeteoriumEmbedBuilder";

Expand Down Expand Up @@ -28,7 +28,8 @@ export const Command: MeteoriumCommand = {
option
.setName("channel")
.setDescription("The channel where verbose logging will be sent at")
.setRequired(true),
.setRequired(true)
.addChannelTypes(ChannelType.GuildText),
),
)
.addSubcommand((subcommand) =>
Expand All @@ -41,7 +42,8 @@ export const Command: MeteoriumCommand = {
option
.setName("channel")
.setDescription("The channel where moderation logs will be sent at")
.setRequired(true),
.setRequired(true)
.addChannelTypes(ChannelType.GuildText),
),
)
.addSubcommand((subcommand) =>
Expand All @@ -52,7 +54,8 @@ export const Command: MeteoriumCommand = {
option
.setName("channel")
.setDescription("The channel where moderation logs will be sent at")
.setRequired(true),
.setRequired(true)
.addChannelTypes(ChannelType.GuildText),
),
)
.addSubcommand((subcommand) =>
Expand Down

0 comments on commit a4247c9

Please sign in to comment.