souji
DIdiscord.js - Imagine ❄
•Created by Martoz on 12/15/2024 in #djs-questions
help download canvas
please use #other-js-ts questions for issues that are not related to discord.js at all
3 replies
DIdiscord.js - Imagine ❄
•Created by Lambros on 10/30/2024 in #djs-questions
Track invite origin
that's not guaranteed, people can just invite your app with another invite link
19 replies
DIdiscord.js - Imagine ❄
•Created by Lambros on 10/30/2024 in #djs-questions
Track invite origin
the invite link can include permissions, if they do a role with those permissions is created, yes
19 replies
DIdiscord.js - Imagine ❄
•Created by Lambros on 10/30/2024 in #djs-questions
Track invite origin
the permission issue is that the bot does not have a role with the manage server permission on the server you are trying to fetch invites from
19 replies
DIdiscord.js - Imagine ❄
•Created by Lambros on 10/30/2024 in #djs-questions
Track invite origin
those will not be saved by discord
19 replies
DIdiscord.js - Imagine ❄
•Created by Lambros on 10/30/2024 in #djs-questions
Track invite origin
not sure what you expect me to say; that's the limitation the api enforces
if you want to fetch invites, that's what the app needs
19 replies
DIdiscord.js - Imagine ❄
•Created by Lambros on 10/30/2024 in #djs-questions
Track invite origin
not sure what you think you are doing here
discord doesn't have a source in the server invites
19 replies
DIdiscord.js - Imagine ❄
•Created by Lambros on 10/30/2024 in #djs-questions
Track invite origin
that endpoint requires the manage guild permission
19 replies
DIdiscord.js - Imagine ❄
•Created by Mussaplays on 10/24/2024 in #djs-questions
Why users can't dm bot
same reason why you can't dm a user
- have the bot blocked
- do not share a server with the bot
- do not share a server with the bot where you have dm messages enabled (privacy settings)
- you are otherwise prohibited from dming people you share a specific server with through that server due to server interaction limitations (onboarding, timeout, raid mode lockdown)
4 replies
DIdiscord.js - Imagine ❄
•Created by fedpep on 10/21/2024 in #djs-questions
Fetch all reactions from a message but without cache
i'm not sure what you are hoping to achieve here
to explain this from the api
- you request the message data, which includes reactions for each emoji
- per emoji you can then request the users that reacted with that emoji
in discord.js that means, when fetching the message, we create a reaction manager for it, which holds methods for removal adding, etc. for which the data is in the
.cache
each of those reaction structures will hold a user manager at .users
which you can then fetch the users from that reacted with that specific emoji
the managers here are the layer of wrapper abstraction we apply to be somewhat in line with object oriented programming principles vs. the raw REST route approach which the discord docs explain (just routes that return data - which you should cache so you don't make unnecessary requests (which is exactly what we do with the library))13 replies
DIdiscord.js - Imagine ❄
•Created by Nab Heyka on 10/13/2024 in #djs-questions
permissionOverwrites on a new channel
parent
key26 replies
DIdiscord.js - Imagine ❄
•Created by Nab Heyka on 10/13/2024 in #djs-questions
permissionOverwrites on a new channel
so 1) that default is fluffed up
has been the case since 2017 tho
so then i tried to understand why i never ran into this - the answer is: i never use it. which begs the question:
why do you even move it?
you can also specify a parent in the #create call
26 replies
DIdiscord.js - Imagine ❄
•Created by Nab Heyka on 10/13/2024 in #djs-questions
permissionOverwrites on a new channel
well, i just tried, both without and with role specified explicitly it worked, with member it did not
26 replies
DIdiscord.js - Imagine ❄
•Created by Nab Heyka on 10/13/2024 in #djs-questions
permissionOverwrites on a new channel
just omit the type
26 replies
DIdiscord.js - Imagine ❄
•Created by Nab Heyka on 10/13/2024 in #djs-questions
permissionOverwrites on a new channel
oh, duh
type member, but guild.id is the at-everyone role id
26 replies
DIdiscord.js - Imagine ❄
•Created by Nab Heyka on 10/13/2024 in #djs-questions
permissionOverwrites on a new channel
you are sure that you saved your code before you ran it?
26 replies
DIdiscord.js - Imagine ❄
•Created by Nab Heyka on 10/13/2024 in #djs-questions
permissionOverwrites on a new channel
how does "doesn't work" manifest?
26 replies
DIdiscord.js - Imagine ❄
•Created by [RS] JesseUCAVedYou [EN] on 10/8/2024 in #djs-questions
Keeping A Channel Polls Only
it's def there
14 replies
DIdiscord.js - Imagine ❄
•Created by [RS] JesseUCAVedYou [EN] on 10/8/2024 in #djs-questions
Keeping A Channel Polls Only
interesting :kek:
14 replies
DIdiscord.js - Imagine ❄
•Created by [RS] JesseUCAVedYou [EN] on 10/8/2024 in #djs-questions
Keeping A Channel Polls Only
not sure what you mean by that, it's in the post starter where it should be?
14 replies