Violet
Violet
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Violet on 7/6/2024 in #djs-questions
line break
Im trying to break line in my embed description with an external string ( not used directly into the code )
14 replies
DIAdiscord.js - Imagine an app
Created by Violet on 3/10/2024 in #djs-questions
Fetching message in a thread
ill explain after i post
16 replies
DIAdiscord.js - Imagine an app
Created by Violet on 2/9/2024 in #djs-questions
Trying to change a variable inside a CATCH
well i have a piece of that im trying to send message to a specific amount of people and im trying to find out how many people didnt get the message. so im trying to +1 to a number variable in my CATCH when sending the message but it never gets added. ( if i console.log it shows the error , but my variable doesnt change )
16 replies
DIAdiscord.js - Imagine an app
Created by Violet on 7/20/2023 in #djs-questions
this interaction failed
idk for some reason one of my button on my embed doesnt work , i tried almost everything for straight up several housrs , im kinda clueless now
7 replies
DIAdiscord.js - Imagine an app
Created by Violet on 6/30/2023 in #djs-questions
Owner Commands
hey , how is everyone doin , i dont have a code with issue atm since idk if what i wanna is even possible. i got some commands which are owner only which like (/reload /turnof ) which only works for me , ( turn of command will make the bot go under maintenance and will not answer to any command except to my call , in case i wanna have an update for it ). what is on my mind is i wanna make those commands be able to be ran with another bot? or i just have those commands in private server and not all servers. since i dont want users even see those two commands or any commands i add later
6 replies
DIAdiscord.js - Imagine an app
Created by Violet on 6/13/2023 in #djs-questions
Channel Permissions
hey im trying to get a specific role permission in a channel and copy its perms with another role in another word duplicatiing the role permission in the same channel. for example i got a role named Verified with set of permissions in some channels , and i wanna add another role named Verifed 2 to those channels which has verified role in them and copying its perm. this is what ive done so far but im stuck at where i should get channels where they only have Verified role perm
18 replies
DIAdiscord.js - Imagine an app
Created by Violet on 6/10/2023 in #djs-questions
add/remove role to/from users with specific role
!
9 replies
DIAdiscord.js - Imagine an app
Created by Violet on 5/26/2023 in #djs-questions
Fetching Roles
Hey , im trying to fetch all roles in discord with a specific name , hmmi guess im kinda doing right but i cant undrestand the result
41 replies
DIAdiscord.js - Imagine an app
Created by Violet on 5/10/2023 in #djs-questions
Fetching Messages
Hey , i searched about it and idk if its possible , but can we actually fetch old messages that our bot has already sent to a specific user and read them?.
7 replies
DIAdiscord.js - Imagine an app
Created by Violet on 5/2/2023 in #djs-questions
Fetching Channels v13
Hey , guys im trying to fetch all text channels in a guild with a specific name. so at first i just use
const Channels = await interaction.guild.channels.fetch();
console.log(Channels);
const Channels = await interaction.guild.channels.fetch();
console.log(Channels);
which show all the channels in guild perfectly. for the next step that i wanna filter to get text channels only with a specific name i dont get the right thing ( or at least i think so).
const OrganizerEmoji = Array.from(Organizer.nickname)[0];
const TextChannels = Channels.map((c) => c.type === 'GUILD_TEXT' && c.name.includes(`${OrganizerEmoji}`));
console.log(TextChannels);
const OrganizerEmoji = Array.from(Organizer.nickname)[0];
const TextChannels = Channels.map((c) => c.type === 'GUILD_TEXT' && c.name.includes(`${OrganizerEmoji}`));
console.log(TextChannels);
and the respond i get is
[
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false,
... 198 more items
]
[
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false,
... 198 more items
]
17 replies