Leozin
Leozin
DIAdiscord.js - Imagine an app
Created by Leozin on 7/5/2023 in #djs-questions
Auth2
Tried to ask questions there but I don't think anyone is answering 😦
9 replies
DIAdiscord.js - Imagine an app
Created by Leozin on 7/5/2023 in #djs-questions
Auth2
@duck
9 replies
DIAdiscord.js - Imagine an app
Created by Leozin on 7/5/2023 in #djs-questions
Auth2
1 more question, on the auth page, there is a cancel button, I wanted when I clicked on the button, it would go back to /login (use nextjs - next-auth)
9 replies
DIAdiscord.js - Imagine an app
Created by Leozin on 7/5/2023 in #djs-questions
Auth2
ok.. thx
9 replies
DIAdiscord.js - Imagine an app
Created by Leozin on 5/8/2023 in #djs-questions
ERROR - Discord.JS everyone is able to see the channel
const channelVoice = await interaction.guild.channels.create(channelsName.toLocaleLowerCase(), {
type: 'GUILD_VOICE',
parent: guild.categoryTicket,
permissionOverwrites: [
{
id: interaction.guild.id,
deny: ['VIEW_CHANNEL']
},
{
id: channel.creatorID,
allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'ATTACH_FILES', 'EMBED_LINKS', 'ADD_REACTIONS']
},
{
id: channel.assumedID ? channel.assumedID : interaction.user.id ,
allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'ATTACH_FILES', 'EMBED_LINKS', 'ADD_REACTIONS']
},
{
id: interaction.user.id,
allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'ATTACH_FILES', 'EMBED_LINKS', 'ADD_REACTIONS']
},
...categoryRoles.map(id => ({
id,
allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'ATTACH_FILES', 'EMBED_LINKS', 'ADD_REACTIONS']
})),
...ids.map(id => ({
id,
allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'ATTACH_FILES', 'EMBED_LINKS', 'ADD_REACTIONS']
}))
]
})
const channelVoice = await interaction.guild.channels.create(channelsName.toLocaleLowerCase(), {
type: 'GUILD_VOICE',
parent: guild.categoryTicket,
permissionOverwrites: [
{
id: interaction.guild.id,
deny: ['VIEW_CHANNEL']
},
{
id: channel.creatorID,
allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'ATTACH_FILES', 'EMBED_LINKS', 'ADD_REACTIONS']
},
{
id: channel.assumedID ? channel.assumedID : interaction.user.id ,
allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'ATTACH_FILES', 'EMBED_LINKS', 'ADD_REACTIONS']
},
{
id: interaction.user.id,
allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'ATTACH_FILES', 'EMBED_LINKS', 'ADD_REACTIONS']
},
...categoryRoles.map(id => ({
id,
allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'ATTACH_FILES', 'EMBED_LINKS', 'ADD_REACTIONS']
})),
...ids.map(id => ({
id,
allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'ATTACH_FILES', 'EMBED_LINKS', 'ADD_REACTIONS']
}))
]
})
3 replies