Comments (6)
There doesn't seem to be a custom_id
documented under Interaction/Interaction data under Discord's documentation.
I could only find an id
that existed under Interaction, and a custom_id
under components (modals, buttons, ...), which already exist in nextcord
from nextcord.
There doesn't seem to be a
custom_id
documented under Interaction/Interaction data under Discord's documentation. I could only find anid
that existed under Interaction, and acustom_id
under components (modals, buttons, ...), which already exist in nextcord
there is interaction.data there is a dict issued in which there is a custom_id
from nextcord.
I don't see why this is needed and you didn't provide any use case either.
custom_id
is an attribute on all subclasses of Item
so it should already be accessible?
If this is for the on_interaction
event then we don't really recommend using that over the callbacks.
from nextcord.
I don't see why this is needed and you didn't provide any use case either.
custom_id
is an attribute on all subclasses ofItem
so it should already be accessible? If this is for theon_interaction
event then we don't really recommend using that over the callbacks.
this parameter can be added to button, dropdown exactly and in on_interaction to find out the custom_id and use, for example, for inactive interaction
from nextcord.
this parameter can be added to button, dropdown exactly and in on_interaction to find out the custom_id and use, for example, for inactive interaction
Thought so. The library provides something called "Persistent View" for that case. As I said, we don't recommend using the event, there is even a warning on the docs about it.
Having said that.. our (NC maintainers) stance on that may change for v3 since the warning and all are from discord.py 🤷
from nextcord.
Since all view items include a custom_id
attribute already, there's no use in having a custom_id
attribute in the interaction class. If you absolutely need it from the interaction object for some reason, you can get it from Interaction.data
.
from nextcord.
Related Issues (20)
- Forum Thread edit tag event is not captured HOT 1
- Regression in StringSelect types HOT 3
- Buttons problem
- @silent message HOT 2
- Add warning for more than 50 slash commandy HOT 6
- Use global name if nickname is not available HOT 1
- Webhook creating forum posts
- Webhooks don't use the proxy
- Missing feature for reloading cogs! HOT 1
- Changing the status description of a voice channel HOT 1
- `AuditLogEntry` documentation is missing attributes
- Arg metatdata in Guild.create_scheduled_event is optional, but Discord API requires it
- application_checks error HOT 3
- Cannot edit an InteractionMessage HOT 3
- Bot crashing due to the error "aiohttp.http_websocket.WebSocketError: Received fragmented control frame" HOT 1
- DeprecationWarning: 'audioop' is deprecated and slated for removal in Python 3.13 HOT 1
- Get webhooks in Forum, Stage, and Voice channels
- Polls integration HOT 1
- Add a Errror for them custom-id HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextcord.