#Does this code still work for v14.1?
10 messages · Page 1 of 1 (latest)
• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.
it does not. read the update guide.
use enums and name goes in options
I just read over this and I don't understand https://discordjs.guide/additional-info/changes-in-v14.html
Anyone?
They just told you to what to do lol
I don't understand what they mean. I changed GUILD_TEXT to GuildText but I don't know what they mean by "name goes in options"
What is options?
Options to create the channel
So this?
message.guild.channels.create( {
type: 'GuildText',
name: 'suggestions',
permissionOverwrites: [{
id: message.guild.id,
allow: ['ViewChannel'],
deny: ['SendMessages']
}]
});
Nearly. The type is a number. Import ChannelType from discord.js and use that enumeration