mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
refactor(Channel): change channel types to UPPER_CASE (#6035)
This commit is contained in:
@@ -10,7 +10,7 @@ client.on('ready', async () => {
|
||||
try {
|
||||
const guild = await client.guilds.create('testing', {
|
||||
channels: [
|
||||
{ name: 'afk channel', type: 'voice', id: 0 },
|
||||
{ name: 'afk channel', type: 'GUILD_VOICE', id: 0 },
|
||||
{ name: 'system-channel', id: 1 },
|
||||
],
|
||||
afkChannelId: 0,
|
||||
|
||||
@@ -46,7 +46,7 @@ client.on('messageCreate', message => {
|
||||
if (true) {
|
||||
if (message.content === 'makechann') {
|
||||
if (message.channel.guild) {
|
||||
message.channel.guild.channels.create('hi', { type: 'text' }).then(console.log);
|
||||
message.channel.guild.channels.create('hi', { type: 'GUILD_TEXT' }).then(console.log);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user