Youssef
Explore posts from serversDIdiscord.js - Imagine ❄
•Created by Youssef on 11/19/2024 in #djs-questions
Interaction emitting 2 times
So basically I have 4 buttons (3 for claim) and a reroll button (once an hour). if a user doesn't have enough currency to reroll it should tell him but he can still claim through the other buttons and here come the problem as the reroll button (should be always working not only for 10 minutes). for the 3 buttons i use a collector that works for 10 minutes only but for the reroll i use a the events. when a user reroll it-regenerate the buttons of claim but when trying to claim it run twice
9 replies
SIASapphire - Imagine a framework
•Created by Youssef on 11/9/2024 in #sapphire-support
Sapphire not updating the command
8 replies
SIASapphire - Imagine a framework
•Created by Youssef on 9/19/2024 in #sapphire-support
chatInputCommandDenied not emiting
6 replies
SIASapphire - Imagine a framework
•Created by Youssef on 9/2/2024 in #sapphire-support
preconditions implementation
So i have some preconditions that check the database if the user is a staff or something.
but each of them fetch the database, and it's useless to do 3 requests for the same data can i somehow specify some data to the precondition or is there a way like i fetch the data on the interaction run the run the preconditions?
6 replies
SIASapphire - Imagine a framework
•Created by Youssef on 8/31/2024 in #sapphire-support
Coodown
Can i reset the cooldown for a specific command for a specific user?
29 replies
DIdiscord.js - Imagine ❄
•Created by Youssef on 7/22/2024 in #djs-questions
Argument of type 'ButtonStyle.Link' is not assignable to parameter of type 'ButtonStyle'
Im using
@discord.js/core
with @discordjs/builders
for the ButtonBuilder
and discord-api-types/v10
for the ButtonStyle
Versions:
discord-api-types: "^0.37.92"
@discordjs/core: "^1.2.0",
@discordjs/builders: "^1.8.2",
32 replies
SIASapphire - Imagine a framework
•Created by Youssef on 6/27/2024 in #sapphire-support
Error [ERR_REQUIRE_ESM]: require() of ES Module
So im getting this errror about 3 times for different packages
32 replies
SIASapphire - Imagine a framework
•Created by Youssef on 5/16/2024 in #sapphire-support
Custom slash commands registration
164 replies
SIASapphire - Imagine a framework
•Created by Youssef on 3/23/2024 in #sapphire-support
DiscordAPIError[10062]: Unknown interaction
5 replies
SIASapphire - Imagine a framework
•Created by Youssef on 8/20/2023 in #sapphire-support
ts-node vs tsc
when i compile with tsc the code works fine, but with ts-code it stops for some reasons
38 replies
DIdiscord.js - Imagine ❄
•Created by Youssef on 8/10/2023 in #djs-questions
The expected type comes from property 'content' which is declared here on type 'InteractionReplyOpti
like this it don't cause any problems but when i specify the type like this
it give me this error
15 replies
SIASapphire - Imagine a framework
•Created by Youssef on 7/21/2023 in #sapphire-support
Property 'chatInputRun' in type 'OwnerOnlyPrecondition' is not assignable to the same property
7 replies
DIdiscord.js - Imagine ❄
•Created by Youssef on 7/20/2023 in #djs-questions
Get All users banners
So im trying to get all banners of server members.. what im doing is fetching all members
let members = await guild.members.fetch();
but all the members here have banners as null. ik they need to be force fetched.
so i tried something like this
but it still gives the same output34 replies
DIdiscord.js - Imagine ❄
•Created by Youssef on 7/15/2023 in #djs-voice
Player emit idle event without playing
5 replies
DIdiscord.js - Imagine ❄
•Created by Youssef on 11/20/2022 in #djs-voice
bot finished playing
How to understand that a bot has finished playing a file to start a new one?
15 replies
DIdiscord.js - Imagine ❄
•Created by Youssef on 10/31/2022 in #djs-questions
Why i can't send mutiple images in one embed
Why this feature dont exist in discord.js? you can still use it with json
but it will be better to use like .setImages([images array])
27 replies
DIdiscord.js - Imagine ❄
•Created by Youssef on 9/7/2022 in #djs-questions
registering commands problem
24 replies
DIdiscord.js - Imagine ❄
•Created by Youssef on 8/21/2022 in #djs-questions
loading Slash Commands with REST dont works
35 replies
DIdiscord.js - Imagine ❄
•Created by Youssef on 8/21/2022 in #djs-questions
ImageURLOptions
why is StaticImageURLOptions and ImageURLOptions dont exist in main docs ?
9 replies
DIdiscord.js - Imagine ❄
•Created by Youssef on 7/26/2022 in #djs-questions
default_member_permissions
if ('default_member_permissions' in command) {
^
TypeError: Cannot use 'in' operator to search for 'default_member_permissions' in ping
11 replies