Updated types for channels
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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: [
|
||||
{
|
||||
|
||||
@@ -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: [
|
||||
|
||||
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user