@@ -447,7 +447,6 @@ impl Http {
447
447
///
448
448
/// Functions the same as [`Self::execute_webhook`]
449
449
#[ cfg( feature = "unstable_discord_api" ) ]
450
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
451
450
pub async fn create_followup_message (
452
451
& self ,
453
452
interaction_token : & str ,
@@ -476,7 +475,6 @@ impl Http {
476
475
///
477
476
/// [docs]: https://discord.com/developers/docs/interactions/slash-commands#create-global-application-command
478
477
#[ cfg( feature = "unstable_discord_api" ) ]
479
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
480
478
pub async fn create_global_application_command (
481
479
& self ,
482
480
map : & Value ,
@@ -493,7 +491,6 @@ impl Http {
493
491
494
492
/// Creates new global application commands.
495
493
#[ cfg( feature = "unstable_discord_api" ) ]
496
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
497
494
pub async fn create_global_application_commands (
498
495
& self ,
499
496
map : & Value ,
@@ -510,7 +507,6 @@ impl Http {
510
507
511
508
/// Creates new guild application commands.
512
509
#[ cfg( feature = "unstable_discord_api" ) ]
513
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
514
510
pub async fn create_guild_application_commands (
515
511
& self ,
516
512
guild_id : u64 ,
@@ -579,7 +575,6 @@ impl Http {
579
575
///
580
576
/// [docs]: https://discord.com/developers/docs/interactions/slash-commands#create-guild-application-command
581
577
#[ cfg( feature = "unstable_discord_api" ) ]
582
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
583
578
pub async fn create_guild_application_command (
584
579
& self ,
585
580
guild_id : u64 ,
@@ -627,7 +622,6 @@ impl Http {
627
622
///
628
623
/// [docs]: https://discord.com/developers/docs/interactions/slash-commands#interaction-interaction-response
629
624
#[ cfg( feature = "unstable_discord_api" ) ]
630
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
631
625
pub async fn create_interaction_response (
632
626
& self ,
633
627
interaction_id : u64 ,
@@ -823,7 +817,6 @@ impl Http {
823
817
824
818
/// Deletes a follow-up message for an interaction.
825
819
#[ cfg( feature = "unstable_discord_api" ) ]
826
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
827
820
pub async fn delete_followup_message (
828
821
& self ,
829
822
interaction_token : & str ,
@@ -843,7 +836,6 @@ impl Http {
843
836
844
837
/// Deletes a global command.
845
838
#[ cfg( feature = "unstable_discord_api" ) ]
846
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
847
839
pub async fn delete_global_application_command ( & self , command_id : u64 ) -> Result < ( ) > {
848
840
self . wind ( 204 , Request {
849
841
body : None ,
@@ -870,7 +862,6 @@ impl Http {
870
862
871
863
/// Deletes a guild command.
872
864
#[ cfg( feature = "unstable_discord_api" ) ]
873
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
874
865
pub async fn delete_guild_application_command (
875
866
& self ,
876
867
guild_id : u64 ,
@@ -990,7 +981,6 @@ impl Http {
990
981
991
982
/// Deletes the initial interaction response.
992
983
#[ cfg( feature = "unstable_discord_api" ) ]
993
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
994
984
pub async fn delete_original_interaction_response (
995
985
& self ,
996
986
interaction_token : & str ,
@@ -1168,7 +1158,6 @@ impl Http {
1168
1158
///
1169
1159
/// [docs]: https://discord.com/developers/docs/resources/webhook#edit-webhook-message
1170
1160
#[ cfg( feature = "unstable_discord_api" ) ]
1171
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
1172
1161
pub async fn edit_followup_message (
1173
1162
& self ,
1174
1163
interaction_token : & str ,
@@ -1195,7 +1184,6 @@ impl Http {
1195
1184
///
1196
1185
/// [docs]: https://discord.com/developers/docs/interactions/slash-commands#edit-global-application-command
1197
1186
#[ cfg( feature = "unstable_discord_api" ) ]
1198
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
1199
1187
pub async fn edit_global_application_command (
1200
1188
& self ,
1201
1189
command_id : u64 ,
@@ -1234,7 +1222,6 @@ impl Http {
1234
1222
///
1235
1223
/// [docs]: https://discord.com/developers/docs/interactions/slash-commands#edit-guild-application-command
1236
1224
#[ cfg( feature = "unstable_discord_api" ) ]
1237
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
1238
1225
pub async fn edit_guild_application_command (
1239
1226
& self ,
1240
1227
guild_id : u64 ,
@@ -1261,7 +1248,6 @@ impl Http {
1261
1248
///
1262
1249
/// [documentation]: https://discord.com/developers/docs/interactions/slash-commands#edit-guild-application-command
1263
1250
#[ cfg( feature = "unstable_discord_api" ) ]
1264
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
1265
1251
pub async fn edit_guild_application_command_permissions (
1266
1252
& self ,
1267
1253
guild_id : u64 ,
@@ -1288,7 +1274,6 @@ impl Http {
1288
1274
///
1289
1275
/// [documentation]: https://discord.com/developers/docs/interactions/slash-commands#edit-guild-application-command
1290
1276
#[ cfg( feature = "unstable_discord_api" ) ]
1291
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
1292
1277
pub async fn edit_guild_application_commands_permissions (
1293
1278
& self ,
1294
1279
guild_id : u64 ,
@@ -1445,7 +1430,6 @@ impl Http {
1445
1430
1446
1431
/// Gets the initial interaction response.
1447
1432
#[ cfg( feature = "unstable_discord_api" ) ]
1448
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
1449
1433
pub async fn get_original_interaction_response (
1450
1434
& self ,
1451
1435
interaction_token : & str ,
@@ -1467,7 +1451,6 @@ impl Http {
1467
1451
///
1468
1452
/// [docs]: https://discord.com/developers/docs/resources/webhook#edit-webhook-message
1469
1453
#[ cfg( feature = "unstable_discord_api" ) ]
1470
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
1471
1454
pub async fn edit_original_interaction_response (
1472
1455
& self ,
1473
1456
interaction_token : & str ,
@@ -2311,7 +2294,6 @@ impl Http {
2311
2294
2312
2295
/// Fetches all of the global commands for your application.
2313
2296
#[ cfg( feature = "unstable_discord_api" ) ]
2314
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
2315
2297
pub async fn get_global_application_commands ( & self ) -> Result < Vec < ApplicationCommand > > {
2316
2298
self . fire ( Request {
2317
2299
body : None ,
@@ -2325,7 +2307,6 @@ impl Http {
2325
2307
2326
2308
/// Fetches a global commands for your application by its Id.
2327
2309
#[ cfg( feature = "unstable_discord_api" ) ]
2328
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
2329
2310
pub async fn get_global_application_command (
2330
2311
& self ,
2331
2312
command_id : u64 ,
@@ -2367,7 +2348,6 @@ impl Http {
2367
2348
2368
2349
/// Fetches all of the guild commands for your application for a specific guild.
2369
2350
#[ cfg( feature = "unstable_discord_api" ) ]
2370
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
2371
2351
pub async fn get_guild_application_commands (
2372
2352
& self ,
2373
2353
guild_id : u64 ,
@@ -2385,7 +2365,6 @@ impl Http {
2385
2365
2386
2366
/// Fetches a guild command by its Id.
2387
2367
#[ cfg( feature = "unstable_discord_api" ) ]
2388
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
2389
2368
pub async fn get_guild_application_command (
2390
2369
& self ,
2391
2370
guild_id : u64 ,
@@ -2405,7 +2384,6 @@ impl Http {
2405
2384
2406
2385
/// Fetches all of the guild commands permissions for your application for a specific guild.
2407
2386
#[ cfg( feature = "unstable_discord_api" ) ]
2408
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
2409
2387
pub async fn get_guild_application_commands_permissions (
2410
2388
& self ,
2411
2389
guild_id : u64 ,
@@ -2423,7 +2401,6 @@ impl Http {
2423
2401
2424
2402
/// Gives the guild command permission for your application for a specific guild.
2425
2403
#[ cfg( feature = "unstable_discord_api" ) ]
2426
- #[ cfg_attr( docsrs, doc( cfg( feature = "unstable_discord_api" ) ) ) ]
2427
2404
pub async fn get_guild_application_command_permissions (
2428
2405
& self ,
2429
2406
guild_id : u64 ,
0 commit comments