Updated types for channels

This commit is contained in:
2024-01-06 23:28:37 +01:00
parent 2b92750778
commit d06e15c96c
15 changed files with 43 additions and 147 deletions

View File

@@ -2,7 +2,7 @@ import {
ActionRowBuilder,
ButtonStyle,
ButtonBuilder,
GuildTextBasedChannel,
TextChannel,
} from "discord.js"
import {
color,
@@ -91,7 +91,7 @@ export = {
// update waiting list
const channel = guild.channels.cache.get(
waitingListChannel,
) as GuildTextBasedChannel
) as TextChannel
const wlmessage = await channel!.messages.fetch(waitingListMessage)
const wlembed = wlmessage.embeds[0]

View File

@@ -4,7 +4,7 @@ import {
ActionRowBuilder,
EmbedBuilder,
GuildMember,
GuildTextBasedChannel,
TextChannel,
} from "discord.js"
import { color } from "../../../config/options.json"
import { largeM, smallM, ignM } from "../../../config/limitmessages.json"
@@ -537,7 +537,7 @@ export = {
const channel = guild.channels.cache.get(
applicationsChannel,
) as GuildTextBasedChannel
) as TextChannel
await channel.send({
embeds: [
{

View File

@@ -4,7 +4,7 @@ import {
ButtonStyle,
EmbedBuilder,
GuildMember,
GuildTextBasedChannel,
TextChannel,
} from "discord.js"
import {
gm,
@@ -305,7 +305,7 @@ module.exports = {
const appChannel = guild.channels.cache.get(
inactivityLogChannel,
) as GuildTextBasedChannel
) as TextChannel
await appChannel.send({
embeds: [

View File

@@ -4,7 +4,7 @@ import {
ActionRowBuilder,
EmbedBuilder,
GuildMember,
GuildTextBasedChannel,
TextChannel,
} from "discord.js"
import { color, staffApplicationsChannel } from "../../../config/options.json"
import { largeM, ignM } from "../../../config/limitmessages.json"
@@ -464,7 +464,7 @@ export = {
const channel = guild.channels.cache.get(
staffApplicationsChannel,
) as GuildTextBasedChannel
) as TextChannel
await channel.send({
embeds: [