MrQuickLine
MrQuickLine
KPCKevin Powell - Community
Created by Bloodika (Legjobb) on 10/9/2023 in #front-end
Mixing overflow-y and overflow-x
You could set up the demo on codesandbox - it'll let you pull in your dependencies there
19 replies
DIAdiscord.js - Imagine a boo! 👻
Created by MrQuickLine on 8/29/2023 in #djs-questions
How do I distinguish an `APIRole` from a `Role`?
I see. I'll dig into that. Thanks!
6 replies
DIAdiscord.js - Imagine a boo! 👻
Created by MrQuickLine on 8/29/2023 in #djs-questions
How do I distinguish an `APIRole` from a `Role`?
Maybe I misunderstood something... I create a Bot called 'Foo' and I add it to a server. It automatically gets assigned a role 'Foo' (which I will now refer to as FooBot and FooRole). In the Server Settings under Roles, if you click 'FooRole' it gives you the big warning:
This role is managed by an integration, yada yada yada".
FooBot says,
Hey, server admin! You can type /config role (where this is an application command with option type: 8) and give me a role to ping when so and so happens.
The autocomplete options for /config role includes FooRole. Ideally - I don't want the autocomplete to include that role. But if it must be included, then I want to do something in my code with interaction.reply({message: "That's not a valid role. Choose a role that didn't come in with a bot!"}) Is FooRole an APIRole? I assumed yes.
6 replies