mirror of
https://github.com/HappyTanuki/BumbleCee.git
synced 2025-12-18 21:23:29 +00:00
스킵 구현
This commit is contained in:
16
DPP-master/docpages/example_code/webhooks.cpp
Normal file
16
DPP-master/docpages/example_code/webhooks.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <dpp/dpp.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
dpp::cluster bot(""); /* Normally, you put your bot token in here, but its not required for webhooks. */
|
||||
|
||||
bot.on_log(dpp::utility::cout_logger());
|
||||
|
||||
/* Construct a webhook object using the URL you got from Discord */
|
||||
dpp::webhook wh("https://discord.com/api/webhooks/833047646548133537/ntCHEYYIoHSLy_GOxPx6pmM0sUoLbP101ct-WI6F-S4beAV2vaIcl_Id5loAMyQwxqhE");
|
||||
|
||||
/* Send a message with this webhook */
|
||||
bot.execute_webhook_sync(wh, dpp::message("Have a great time here :smile:"));
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user