-
Notifications
You must be signed in to change notification settings - Fork 0
Guild Channels
Discord+PS improves on how guild channels can be used in a few ways
Discord+PS' channel count uses the guild's channel cache so it may not be accurate until you restart the bot
PSClient.guild.channelCount(?guild);
PSClient.guild.channels() returns a list of all channels only excluding categories (text, voice, and thread)
Uses the guild's channel cache so it may not update until you restart the bot
PSClient.guild.channels(?guild);
PSClient.guild.textChannels() returns a list of only text channels
Uses the guild's channel cache so it may not update until you restart the bot
PSClient.guild.textChannels(?guild);
// or
PSClient.guild.TCs(?guild);
PSClient.guild.voiceChannels() returns a list of only voice channels
Uses the guild's channel cache so it may not update until you restart the bot
PSClient.guild.voiceChannels(?guild);
// or
PSClient.guild.VCs(?guild);
PSClient.guild.threadChannels() returns a list of only thread channels
Uses the guild's channel cache so it may not update until you restart the bot
PSClient.guild.threadChannels(?guild);
// or
PSClient.guild.threads(?guild);
PSClient.guild.categories() returns a list of only text channels
Uses the guild's channel cache so it may not update until you restart the bot
PSClient.guild.categories(?guild);
PSClient.guild.stuff() returns a list of all channels (category, text, voice, and thread)
Uses the guild's channel cache so it may not update until you restart the bot
PSClient.guild.stuff(?guild);
ChannelF is a function that lets you use every channel in a server constantly updating although it's limited due to Discord.JS limitations
PSClient.guild.channelF( (channels) => {
channels.forEach( (channel) => {
console.log(channel.id);
});
});
For a look at some examples check out the examples folder
If anything with the mod is updated you can look to the releases for info on it
For a look into the development check out the index.js file
This mod is not associated with the creators of Discord, Discord.JS, or Discord.PY this was created out of love for Discord bot development because I wanted to make things easier for people. I do not condone harassment of the original developers and or anyone else involved in the creation of them.
I am not responsible for anything made with this mod and be sure to follow Discord's terms of service and their community guildlines while developing.
Basics
wc.command()
wc.slashCommand()
wc.commandList
wc.slashCommandList
Basics
wc.event()
wc.eventList
wc.commandAction()
wc.buttonAction()
wc.selectionAction()
wc.rowAction()
wc.fetchMessage()
wc.fetchReply()
wc.fetchUser()
wc.fetchGuildUser()
wc.fetchChannel()
wc.fetchGuildChannel()
wc.fetchRole()
wc.fetchGuildRole()
wc.fetchGuild()
wc.parseEmoji()
wc.parseSticker()