Aphelious
DIAdiscord.js - Imagine an app
•Created by Aphelious on 3/18/2024 in #djs-questions
Im only getting online members by specific role
@ʎǝɹquoɯ is it like
Can u check line 13 and 15 now is it like that ?
5 replies
DIAdiscord.js - Imagine an app
•Created by Aphelious on 3/16/2024 in #djs-questions
Help With permission on discord bot
Now got it to work thx 🙏
9 replies
DIAdiscord.js - Imagine an app
•Created by Aphelious on 3/16/2024 in #djs-questions
Help With permission on discord bot
@Qjuh i got it to work but now
if there is an exisiting team and role of the same name its crashing the bot
here is the error on log
https://srcshare.io/65f56b1c07f5041b2ea81739
here is the updated code
https://srcshare.io/65f55a31127daf3001d661d4
9 replies
DIAdiscord.js - Imagine an app
•Created by Aphelious on 3/16/2024 in #djs-questions
Help With permission on discord bot
which would be the easy way to get the bot inside the channel or keep it out ? @
9 replies
DIAdiscord.js - Imagine an app
•Created by Aphelious on 3/16/2024 in #djs-questions
Help With permission on discord bot
isint it already in the channels.create
const teamChannel = await interaction.guild.channels.create({
name: teamName,
type: ChannelType.GuildText,
parent: teamCategory,
permissionOverwrites: [
{
id: interaction.guild.roles.everyone, // Deny access to everyone
deny: [PermissionsBitField.Flags.ViewChannel],
},
{
id: newTeamRole.id, // Allow access to the newTeamRole
allow: [PermissionsBitField.Flags.ViewChannel],
},
],
});
9 replies
DIAdiscord.js - Imagine an app
•Created by Aphelious on 3/16/2024 in #djs-questions
Help With permission on discord bot
nop i can give permission to bot on my own right but i want only the newTeamRole.id to have access to it so i dont want my bot to be inside the channel after creation of channel
9 replies
DIAdiscord.js - Imagine an app
•Created by Aphelious on 3/16/2024 in #djs-questions
Help With permission on discord bot
so u meant to say
const newTeamRole = await interaction.guild.roles.create({
this one and
const teamChannel = await interaction.guild.channels.create({
that ?
9 replies
DIAdiscord.js - Imagine an app
•Created by Aphelious on 3/16/2024 in #djs-questions
Help With permission on discord bot
@Qjuh what do u mean by pass the interaction.user overwrite in the create call too
I have already passed it right ?
line 71
await teamChannel.permissionOverwrites.create(interaction.user, {
ViewChannel: true,
});
9 replies
DIAdiscord.js - Imagine an app
•Created by Aphelious on 3/16/2024 in #djs-questions
Discord js V14 modal submit error
didnt add this statement
if (collectedInteractions) {
await collectedInteractions.reply({
content:
Saved
,
});11 replies
DIAdiscord.js - Imagine an app
•Created by Aphelious on 3/16/2024 in #djs-questions
Discord js V14 modal submit error
Thx fixed
11 replies
DIAdiscord.js - Imagine an app
•Created by Aphelious on 3/16/2024 in #djs-questions
Discord js V14 modal submit error
if (interaction.isModalSubmit()) { i did use this it didnt work after i used it it didnt save into database too it just showed something when wrong on the form @ʎǝɹquoɯ
11 replies
DIAdiscord.js - Imagine an app
•Created by Aphelious on 3/16/2024 in #djs-questions
Discord js V14 modal submit error
how do i do that @ʎǝɹquoɯ ?
11 replies