#Does this code still work for v14.1?

10 messages · Page 1 of 1 (latest)

real prawn
#
        message.guild.channels.create('suggestions', {
            type: 'GUILD_TEXT',
            permissionOverwrites: [{
                id: message.guild.id,
                allow: ['VIEW_CHANNEL'],
                deny: ['SEND_MESSAGES']
            }]
        });
``` When trying to create a channel called suggestions?
steel edgeBOT
#

• 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.

blazing ice
#

it does not. read the update guide.
use enums and name goes in options

real prawn
real prawn
#

Anyone?

ashen valve
#

They just told you to what to do lol

real prawn
ashen valve
#

Options to create the channel

real prawn
# ashen valve Options to create the channel

So this?

        message.guild.channels.create( {
            type: 'GuildText',
            name: 'suggestions',
            permissionOverwrites: [{
                id: message.guild.id,
                allow: ['ViewChannel'],
                deny: ['SendMessages']
            }]
        });
ashen valve
#

Nearly. The type is a number. Import ChannelType from discord.js and use that enumeration