brainboxdotcc / DPP

C++ Discord API Bot Library - D++ is Lightweight and scalable for small and huge bots!
https://dpp.dev/
Apache License 2.0
1.04k stars 158 forks source link

How to get a channel id on channel create? #1108

Closed AndraxFlow closed 5 months ago

AndraxFlow commented 5 months ago

I want to be able to create and delete text and voice channels. My bot can create channels and delete them, when I copying the id manually, but I want automatically get the id to delete a channel. How can I get the id?

KatCote commented 5 months ago

Same. If it isn't possible to get ID on create, what other the method can be used to get it?

Mishura4 commented 5 months ago

When creating a channel, the newly created channel should be sent back and present in the callback parameter (see https://dpp.dev/classdpp_1_1cluster.html#a66df9163f111cec5a180d642f521660a & https://dpp.dev/callback-functions.html)