PAdventures
Explore posts from serversDIAdiscord.js - Imagine an app
•Created by PAdventures on 1/7/2024 in #djs-questions
AutoModerationRuleUpdate -> OldRule is null on rule actions update
the old rule is null when I update the rule's actions (timeout, alert message). Is this normal behaviour? Yes, i am aware that the old rule can be null
3 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 12/27/2023 in #djs-questions
Event Emitter emits custom event twice
console
my code doesn't look exactly like this by similar
4 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 12/6/2023 in #djs-questions
ActionRowBuilder type error with EditReply
error
The package manager i use
reciple
has the same discord.js version as mine8 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 10/23/2023 in #djs-questions
@discordjs/opus not installing for macOS
Ive literally tried everything
8 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 9/23/2023 in #djs-questions
Buttons will not re-enable
I have a pagination system that should disable and enable buttons depending on what page the user is on. The buttons will always stay on their default
disabled
state and won't change whenever I editReply the message
Collector
buttonRow()
button example: prevPage()
4 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 9/4/2023 in #djs-questions
Message Collector Filter not working
The filter is not working for some reason
Logs
what i type in the channel
delete cbz5yhifqx
collector
collector doesnt do anything11 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 7/19/2023 in #djs-questions
Custom Emoji formatting issue
I am trying to use custom emojis from a server I own for my bot. The bot is in this server and has admin perms in a different server plus there are no custom emoji restrictions in the channel where the bot is trying to use the emojis.
I have tried many methods to use the emojis.
For example:
Plus
And
Each just ends up in the bot sending the emoji name wrapped around colons.
I have triple-checked that the emoji names are correct as well as their ids.
Any idea on how to solve this?
10 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 7/6/2023 in #djs-questions
Fetching Guild Commands returns nothing
I am using the ApplicationCommandPermissionsUpdate event. I am trying to fetch the command using the
guild.commands.fetch()
method. This always returns empty and i'm not sure why.
Here is my some code for the ApplicationCommandPermissionsUpdate file:
Output for the logged collection, array and error
Please note that there are application commands in the server12 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 5/23/2023 in #djs-questions
How to detect if a string is a snowflake and check what type of snowflake it is?
I've been doing this but i want to know if there is an easier way
10 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 5/8/2023 in #djs-questions
Channel Update Event
Is there any way, to find out which user moved a channel from one category to another?
9 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 4/22/2023 in #djs-questions
Autocomplete Question
I don't understand what autocomplete does and I can't seem to find any information on this that goes in-depth. What does autocomplete actually do?
5 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 4/13/2023 in #djs-questions
Audit Log Channel Update Event
With the code below, when I update a channel's parent,
auditLog
is undefined. Why?
2 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 4/12/2023 in #djs-questions
Client Question
Why does the following sometimes work when the client / code starts / runs and other times doesn't?
client.application.commands.cache.size
Normally returns 28
Other times returns 04 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 4/10/2023 in #djs-questions
Mention Spam Protection Activation / Deactivation Detection
Can you get the user who deleted / edited an auto mod rule?
19 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 4/8/2023 in #djs-questions
Auto Mod Create Event not working
here is the event code. the output is nothing
7 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 4/8/2023 in #djs-questions
How to I turn Permission numbers into a string / array?
defaultMemberPermissions
returns with a number. How do i make this a string, such as administrator
?7 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 4/7/2023 in #djs-questions
Application Command Permission Update Event
I am trying to get the type of permission in the data of the event.
Example:
data.permissions.type
This is returning as undefined
when I update a app command's user/roles/channel permissions
If you are confused, look at the type / ApplicationCommandPermissionType
in the link below
https://old.discordjs.dev/#/docs/discord.js/main/typedef/ApplicationCommandPermissions10 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 12/4/2022 in #djs-questions
Find a role by name then update it
How do I find a role in a guild by it's name. Then update it's info?
Does this code work. Note that this is in the
guildCreate
event29 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 12/4/2022 in #djs-questions
DM a guild owner if the Bot does not have the correct perms when it joins a guild on guildCreate
return guild.ownerId.send({ embeds: [createError ]});
this doesn't work. I am not sure why20 replies
DIAdiscord.js - Imagine an app
•Created by PAdventures on 12/4/2022 in #djs-questions
How to remove all permissions of the 'everyone' role?
Is there a way to remove all permissions of the
@everyone
role using the setPermissions()
function?15 replies