lib_discord 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee336f29f9c16524420b8b087cd245de9cc80f35ee27c1d0036c0983b2042d18
4
- data.tar.gz: bca8789409c439b82d3bec3b69122c992672b89f35318ee91a1e173fd3ce8589
3
+ metadata.gz: 57a15b2c5d63537507c03eb8a27b82109dfbb39b896abd2f5f3f99a3efbed9d7
4
+ data.tar.gz: 20da6149a1f5f5dd9dd4c46c23640a812c1dc2b0491f1d57bfba748e47cd0c45
5
5
  SHA512:
6
- metadata.gz: 0d3c5d14694598880a30b2b061079dedba3ce3911bc64b1c58f340ab8812e97651d25bff73b62c358ad7501203d6d3c1d0394c89f939c3e6a50cd6fbf6db6da7
7
- data.tar.gz: b4c989d2ded1f3a95bd037f7ca111cb3258e54df90eac9de3342d4d348546ca2ef63a503dc1c35895f63af382669d3eb967eb5a4db80a8659cdaa09f166d31ec
6
+ metadata.gz: ac7343653e27eb689a3ae6d336c2256938f002f91913fd8984b54f3ea4966d41ff987e56ab5c839f0a911af70f1dfb4e1646fe9167d80193bba80d6f9d42d3ea
7
+ data.tar.gz: 29a0bea3585f679e6f39a6c68885fe283cd191e83b22ca45baebaa82433f67449d9eef64bd9e018d9eee61e3dd6413607c681eef30767a726fa3c6d68d289090
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [0.1.3] - 2024-07-26
4
+
5
+ ### chore
6
+ - bundle update
7
+ - tiny bit of clarity added
8
+ - bundle update
9
+
10
+ ### fix
11
+ - allow for any kind of JSON payload
12
+
3
13
  ## [0.1.2] - 2024-05-13
4
14
 
5
15
  ### chore
data/README.md CHANGED
@@ -106,7 +106,7 @@ This project adheres to [Standard Ruby] style rules.
106
106
  Additionally, we strive for an 80 character line length, but it's not a
107
107
  hard-and-fast rule. There are occasions where breaking an expression across
108
108
  multiple lines decreases readability for no benefit other than to appease a
109
- linter. As such, there is no tool to enforce it.
109
+ linter. As such, there is no tool to enforce an 80 character line length.
110
110
 
111
111
  [Standard Ruby]: https://github.com/standardrb/standard
112
112
 
@@ -27,7 +27,7 @@ module LibDiscord
27
27
  end
28
28
 
29
29
  ##
30
- # @param json [Hash] JSON serializable payload
30
+ # @param json [#to_json] JSON serializable payload
31
31
  #
32
32
  # @return [Response]
33
33
  #
@@ -39,7 +39,7 @@ module LibDiscord
39
39
  # @param application_id [#to_s]
40
40
  # {https://discord.com/developers/docs/reference#snowflakes Discord
41
41
  # documentation "Snowflakes"}
42
- # @param json [Hash] JSON serializable payload
42
+ # @param json [#to_json] JSON serializable payload
43
43
  #
44
44
  # @return [Response]
45
45
  #
@@ -77,7 +77,7 @@ module LibDiscord
77
77
  # @param command_id [#to_s]
78
78
  # {https://discord.com/developers/docs/reference#snowflakes Discord
79
79
  # documentation "Snowflakes"}
80
- # @param json [Hash] JSON serializable payload
80
+ # @param json [#to_json] JSON serializable payload
81
81
  #
82
82
  # @return [Response]
83
83
  #
@@ -112,7 +112,7 @@ module LibDiscord
112
112
  # @param application_id [#to_s]
113
113
  # {https://discord.com/developers/docs/reference#snowflakes Discord
114
114
  # documentation "Snowflakes"}
115
- # @param json [Hash]
115
+ # @param json [#to_json] JSON serializable payload
116
116
  #
117
117
  # @return [Response]
118
118
  #
@@ -153,7 +153,7 @@ module LibDiscord
153
153
  # @param guild_id [#to_s]
154
154
  # {https://discord.com/developers/docs/reference#snowflakes Discord
155
155
  # documentation "Snowflakes"}
156
- # @param json [Hash]
156
+ # @param json [#to_json] JSON serializable payload
157
157
  #
158
158
  # @return [Response]
159
159
  #
@@ -197,7 +197,7 @@ module LibDiscord
197
197
  # @param command_id [#to_s]
198
198
  # {https://discord.com/developers/docs/reference#snowflakes Discord
199
199
  # documentation "Snowflakes"}
200
- # @param json [Hash]
200
+ # @param json [#to_json] JSON serializable payload
201
201
  #
202
202
  # @return [Response]
203
203
  #
@@ -238,7 +238,7 @@ module LibDiscord
238
238
  # @param guild_id [#to_s]
239
239
  # {https://discord.com/developers/docs/reference#snowflakes Discord
240
240
  # documentation "Snowflakes"}
241
- # @param json [Hash]
241
+ # @param json [#to_json] JSON serializable payload
242
242
  #
243
243
  # @return [Response]
244
244
  #
@@ -298,7 +298,7 @@ module LibDiscord
298
298
  # @param command_id [#to_s]
299
299
  # {https://discord.com/developers/docs/reference#snowflakes Discord
300
300
  # documentation "Snowflakes"}
301
- # @param json [Hash]
301
+ # @param json [#to_json] JSON serializable payload
302
302
  #
303
303
  # @return [Response]
304
304
  #
@@ -325,7 +325,7 @@ module LibDiscord
325
325
  # @param guild_id [#to_s]
326
326
  # {https://discord.com/developers/docs/reference#snowflakes Discord
327
327
  # documentation "Snowflakes"}
328
- # @param json [Hash]
328
+ # @param json [#to_json] JSON serializable payload
329
329
  #
330
330
  # @return [Response]
331
331
  #
@@ -35,7 +35,7 @@ module LibDiscord
35
35
  # @param application_id [#to_s]
36
36
  # {https://discord.com/developers/docs/reference#snowflakes Discord
37
37
  # documentation "Snowflakes"}
38
- # @param json [Hash] JSON serializable payload
38
+ # @param json [#to_json] JSON serializable payload
39
39
  #
40
40
  # @return [Response]
41
41
  #
@@ -52,7 +52,7 @@ module LibDiscord
52
52
  # @param guild_id [#to_s]
53
53
  # {https://discord.com/developers/docs/reference#snowflakes Discord
54
54
  # documentation "Snowflakes"}
55
- # @param json [Hash] JSON serializable payload
55
+ # @param json [#to_json] JSON serializable payload
56
56
  #
57
57
  # @return [Response]
58
58
  #
@@ -72,7 +72,7 @@ module LibDiscord
72
72
  # @param auto_moderation_rule_id [#to_s]
73
73
  # {https://discord.com/developers/docs/reference#snowflakes Discord
74
74
  # documentation "Snowflakes"}
75
- # @param json [Hash] JSON serializable payload
75
+ # @param json [#to_json] JSON serializable payload
76
76
  #
77
77
  # @return [Response]
78
78
  #
@@ -34,7 +34,7 @@ module LibDiscord
34
34
  # @param channel_id [#to_s]
35
35
  # {https://discord.com/developers/docs/reference#snowflakes Discord
36
36
  # documentation "Snowflakes"}
37
- # @param json [Hash] JSON serializable payload
37
+ # @param json [#to_json] JSON serializable payload
38
38
  #
39
39
  # @return [Response]
40
40
  #
@@ -104,7 +104,7 @@ module LibDiscord
104
104
  # @param channel_id [#to_s]
105
105
  # {https://discord.com/developers/docs/reference#snowflakes Discord
106
106
  # documentation "Snowflakes"}
107
- # @param json [Hash] JSON serializable payload
107
+ # @param json [#to_json] JSON serializable payload
108
108
  #
109
109
  # @return [Response]
110
110
  #
@@ -261,7 +261,7 @@ module LibDiscord
261
261
  # @param message_id [#to_s]
262
262
  # {https://discord.com/developers/docs/reference#snowflakes Discord
263
263
  # documentation "Snowflakes"}
264
- # @param json [Hash] JSON serializable payload
264
+ # @param json [#to_json] JSON serializable payload
265
265
  #
266
266
  # @return [Response]
267
267
  #
@@ -296,7 +296,7 @@ module LibDiscord
296
296
  # @param channel_id [#to_s]
297
297
  # {https://discord.com/developers/docs/reference#snowflakes Discord
298
298
  # documentation "Snowflakes"}
299
- # @param json [Hash] JSON serializable payload
299
+ # @param json [#to_json] JSON serializable payload
300
300
  #
301
301
  # @return [Response]
302
302
  #
@@ -316,7 +316,7 @@ module LibDiscord
316
316
  # @param overwrite_id [#to_s]
317
317
  # {https://discord.com/developers/docs/reference#snowflakes Discord
318
318
  # documentation "Snowflakes"}
319
- # @param json [Hash] JSON serializable payload
319
+ # @param json [#to_json] JSON serializable payload
320
320
  #
321
321
  # @return [Response]
322
322
  #
@@ -348,7 +348,7 @@ module LibDiscord
348
348
  # @param channel_id [#to_s]
349
349
  # {https://discord.com/developers/docs/reference#snowflakes Discord
350
350
  # documentation "Snowflakes"}
351
- # @param json [Hash] JSON serializable payload
351
+ # @param json [#to_json] JSON serializable payload
352
352
  #
353
353
  # @return [Response]
354
354
  #
@@ -383,7 +383,7 @@ module LibDiscord
383
383
  # @param channel_id [#to_s]
384
384
  # {https://discord.com/developers/docs/reference#snowflakes Discord
385
385
  # documentation "Snowflakes"}
386
- # @param json [Hash] JSON serializable payload
386
+ # @param json [#to_json] JSON serializable payload
387
387
  #
388
388
  # @return [Response]
389
389
  #
@@ -469,7 +469,7 @@ module LibDiscord
469
469
  # @param user_id [#to_s]
470
470
  # {https://discord.com/developers/docs/reference#snowflakes Discord
471
471
  # documentation "Snowflakes"}
472
- # @param json [Hash] JSON serializable payload
472
+ # @param json [#to_json] JSON serializable payload
473
473
  #
474
474
  # @return [Response]
475
475
  #
@@ -507,7 +507,7 @@ module LibDiscord
507
507
  # @param message_id [#to_s]
508
508
  # {https://discord.com/developers/docs/reference#snowflakes Discord
509
509
  # documentation "Snowflakes"}
510
- # @param json [Hash] JSON serializable payload
510
+ # @param json [#to_json] JSON serializable payload
511
511
  #
512
512
  # @return [Response]
513
513
  #
@@ -524,7 +524,7 @@ module LibDiscord
524
524
  # @param channel_id [#to_s]
525
525
  # {https://discord.com/developers/docs/reference#snowflakes Discord
526
526
  # documentation "Snowflakes"}
527
- # @param json [Hash] JSON serializable payload
527
+ # @param json [#to_json] JSON serializable payload
528
528
  #
529
529
  # @return [Response]
530
530
  #
@@ -541,7 +541,7 @@ module LibDiscord
541
541
  # @param channel_id [#to_s]
542
542
  # {https://discord.com/developers/docs/reference#snowflakes Discord
543
543
  # documentation "Snowflakes"}
544
- # @param json [Hash] JSON serializable payload
544
+ # @param json [#to_json] JSON serializable payload
545
545
  #
546
546
  # @return [Response]
547
547
  #
@@ -52,7 +52,7 @@ module LibDiscord
52
52
  # @param guild_id [#to_s]
53
53
  # {https://discord.com/developers/docs/reference#snowflakes Discord
54
54
  # documentation "Snowflakes"}
55
- # @param json [Hash] JSON serializable payload
55
+ # @param json [#to_json] JSON serializable payload
56
56
  #
57
57
  # @return [Response]
58
58
  #
@@ -72,7 +72,7 @@ module LibDiscord
72
72
  # @param emoji_id [#to_s]
73
73
  # {https://discord.com/developers/docs/reference#snowflakes Discord
74
74
  # documentation "Snowflakes"}
75
- # @param json [Hash] JSON serializable payload
75
+ # @param json [#to_json] JSON serializable payload
76
76
  #
77
77
  # @return [Response]
78
78
  #
@@ -16,7 +16,7 @@ module LibDiscord
16
16
  # documentation "Guild Resource"
17
17
  class Guild < Resource
18
18
  ##
19
- # @param json [Hash] JSON serializable payload
19
+ # @param json [#to_json] JSON serializable payload
20
20
  #
21
21
  # @return [Response]
22
22
  #
@@ -66,7 +66,7 @@ module LibDiscord
66
66
  # @param guild_id [#to_s]
67
67
  # {https://discord.com/developers/docs/reference#snowflakes Discord
68
68
  # documentation "Snowflakes"}
69
- # @param json [Hash] JSON serializable payload
69
+ # @param json [#to_json] JSON serializable payload
70
70
  #
71
71
  # @return [Response]
72
72
  #
@@ -113,7 +113,7 @@ module LibDiscord
113
113
  # @param guild_id [#to_s]
114
114
  # {https://discord.com/developers/docs/reference#snowflakes Discord
115
115
  # documentation "Snowflakes"}
116
- # @param json [Hash] JSON serializable payload
116
+ # @param json [#to_json] JSON serializable payload
117
117
  #
118
118
  # @return [Response]
119
119
  #
@@ -130,7 +130,7 @@ module LibDiscord
130
130
  # @param guild_id [#to_s]
131
131
  # {https://discord.com/developers/docs/reference#snowflakes Discord
132
132
  # documentation "Snowflakes"}
133
- # @param json [Hash] JSON serializable payload
133
+ # @param json [#to_json] JSON serializable payload
134
134
  #
135
135
  # @return [Response]
136
136
  #
@@ -219,7 +219,7 @@ module LibDiscord
219
219
  # @param user_id [#to_s]
220
220
  # {https://discord.com/developers/docs/reference#snowflakes Discord
221
221
  # documentation "Snowflakes"}
222
- # @param json [Hash] JSON serializable payload
222
+ # @param json [#to_json] JSON serializable payload
223
223
  #
224
224
  # @return [Response]
225
225
  #
@@ -239,7 +239,7 @@ module LibDiscord
239
239
  # @param user_id [#to_s]
240
240
  # {https://discord.com/developers/docs/reference#snowflakes Discord
241
241
  # documentation "Snowflakes"}
242
- # @param json [Hash] JSON serializable payload
242
+ # @param json [#to_json] JSON serializable payload
243
243
  #
244
244
  # @return [Response]
245
245
  #
@@ -256,7 +256,7 @@ module LibDiscord
256
256
  # @param guild_id [#to_s]
257
257
  # {https://discord.com/developers/docs/reference#snowflakes Discord
258
258
  # documentation "Snowflakes"}
259
- # @param json [Hash] JSON serializable payload
259
+ # @param json [#to_json] JSON serializable payload
260
260
  #
261
261
  # @return [Response]
262
262
  #
@@ -275,7 +275,7 @@ module LibDiscord
275
275
  # @param guild_id [#to_s]
276
276
  # {https://discord.com/developers/docs/reference#snowflakes Discord
277
277
  # documentation "Snowflakes"}
278
- # @param json [Hash] JSON serializable payload
278
+ # @param json [#to_json] JSON serializable payload
279
279
  #
280
280
  # @return [Response]
281
281
  #
@@ -391,7 +391,7 @@ module LibDiscord
391
391
  # @param user_id [#to_s]
392
392
  # {https://discord.com/developers/docs/reference#snowflakes Discord
393
393
  # documentation "Snowflakes"}
394
- # @param json [Hash] JSON serializable payload
394
+ # @param json [#to_json] JSON serializable payload
395
395
  #
396
396
  # @return [Response]
397
397
  #
@@ -426,7 +426,7 @@ module LibDiscord
426
426
  # @param guild_id [#to_s]
427
427
  # {https://discord.com/developers/docs/reference#snowflakes Discord
428
428
  # documentation "Snowflakes"}
429
- # @param json [Hash] JSON serializable payload
429
+ # @param json [#to_json] JSON serializable payload
430
430
  #
431
431
  # @return [Response]
432
432
  #
@@ -458,7 +458,7 @@ module LibDiscord
458
458
  # @param guild_id [#to_s]
459
459
  # {https://discord.com/developers/docs/reference#snowflakes Discord
460
460
  # documentation "Snowflakes"}
461
- # @param json [Hash] JSON serializable payload
461
+ # @param json [#to_json] JSON serializable payload
462
462
  #
463
463
  # @return [Response]
464
464
  #
@@ -475,7 +475,7 @@ module LibDiscord
475
475
  # @param guild_id [#to_s]
476
476
  # {https://discord.com/developers/docs/reference#snowflakes Discord
477
477
  # documentation "Snowflakes"}
478
- # @param json [Hash] JSON serializable payload
478
+ # @param json [#to_json] JSON serializable payload
479
479
  #
480
480
  # @return [Response]
481
481
  #
@@ -495,7 +495,7 @@ module LibDiscord
495
495
  # @param role_id [#to_s]
496
496
  # {https://discord.com/developers/docs/reference#snowflakes Discord
497
497
  # documentation "Snowflakes"}
498
- # @param json [Hash] JSON serializable payload
498
+ # @param json [#to_json] JSON serializable payload
499
499
  #
500
500
  # @return [Response]
501
501
  #
@@ -512,7 +512,7 @@ module LibDiscord
512
512
  # @param guild_id [#to_s]
513
513
  # {https://discord.com/developers/docs/reference#snowflakes Discord
514
514
  # documentation "Snowflakes"}
515
- # @param json [Hash] JSON serializable payload
515
+ # @param json [#to_json] JSON serializable payload
516
516
  #
517
517
  # @return [Response]
518
518
  #
@@ -565,7 +565,7 @@ module LibDiscord
565
565
  # @param guild_id [#to_s]
566
566
  # {https://discord.com/developers/docs/reference#snowflakes Discord
567
567
  # documentation "Snowflakes"}
568
- # @param json [Hash] JSON serializable payload
568
+ # @param json [#to_json] JSON serializable payload
569
569
  #
570
570
  # @return [Response]
571
571
  #
@@ -660,7 +660,7 @@ module LibDiscord
660
660
  # @param guild_id [#to_s]
661
661
  # {https://discord.com/developers/docs/reference#snowflakes Discord
662
662
  # documentation "Snowflakes"}
663
- # @param json [Hash] JSON serializable payload
663
+ # @param json [#to_json] JSON serializable payload
664
664
  #
665
665
  # @return [Response]
666
666
  #
@@ -745,7 +745,7 @@ module LibDiscord
745
745
  # @param guild_id [#to_s]
746
746
  # {https://discord.com/developers/docs/reference#snowflakes Discord
747
747
  # documentation "Snowflakes"}
748
- # @param json [Hash] JSON serializable payload
748
+ # @param json [#to_json] JSON serializable payload
749
749
  #
750
750
  # @return [Response]
751
751
  #
@@ -777,7 +777,7 @@ module LibDiscord
777
777
  # @param guild_id [#to_s]
778
778
  # {https://discord.com/developers/docs/reference#snowflakes Discord
779
779
  # documentation "Snowflakes"}
780
- # @param json [Hash] JSON serializable payload
780
+ # @param json [#to_json] JSON serializable payload
781
781
  #
782
782
  # @return [Response]
783
783
  #
@@ -794,7 +794,7 @@ module LibDiscord
794
794
  # @param guild_id [#to_s]
795
795
  # {https://discord.com/developers/docs/reference#snowflakes Discord
796
796
  # documentation "Snowflakes"}
797
- # @param json [Hash] JSON serializable payload
797
+ # @param json [#to_json] JSON serializable payload
798
798
  #
799
799
  # @return [Response]
800
800
  #
@@ -814,7 +814,7 @@ module LibDiscord
814
814
  # @param user_id [#to_s]
815
815
  # {https://discord.com/developers/docs/reference#snowflakes Discord
816
816
  # documentation "Snowflakes"}
817
- # @param json [Hash] JSON serializable payload
817
+ # @param json [#to_json] JSON serializable payload
818
818
  #
819
819
  # @return [Response]
820
820
  #
@@ -37,7 +37,7 @@ module LibDiscord
37
37
  # @param guild_id [#to_s]
38
38
  # {https://discord.com/developers/docs/reference#snowflakes Discord
39
39
  # documentation "Snowflakes"}
40
- # @param json [Hash] JSON serializable payload
40
+ # @param json [#to_json] JSON serializable payload
41
41
  #
42
42
  # @return [Response]
43
43
  #
@@ -78,7 +78,7 @@ module LibDiscord
78
78
  # @param guild_scheduled_event_id [#to_s]
79
79
  # {https://discord.com/developers/docs/reference#snowflakes Discord
80
80
  # documentation "Snowflakes"}
81
- # @param json [Hash] JSON serializable payload
81
+ # @param json [#to_json] JSON serializable payload
82
82
  #
83
83
  # @return [Response]
84
84
  #
@@ -30,7 +30,7 @@ module LibDiscord
30
30
 
31
31
  ##
32
32
  # @param template_code [#to_s]
33
- # @param json [Hash] JSON serializable payload
33
+ # @param json [#to_json] JSON serializable payload
34
34
  #
35
35
  # @return [Response]
36
36
  #
@@ -62,7 +62,7 @@ module LibDiscord
62
62
  # @param guild_id [#to_s]
63
63
  # {https://discord.com/developers/docs/reference#snowflakes Discord
64
64
  # documentation "Snowflakes"}
65
- # @param json [Hash] JSON serializable payload
65
+ # @param json [#to_json] JSON serializable payload
66
66
  #
67
67
  # @return [Response]
68
68
  #
@@ -96,7 +96,7 @@ module LibDiscord
96
96
  # {https://discord.com/developers/docs/reference#snowflakes Discord
97
97
  # documentation "Snowflakes"}
98
98
  # @param template_code [#to_s]
99
- # @param json [Hash] JSON serializable payload
99
+ # @param json [#to_json] JSON serializable payload
100
100
  #
101
101
  # @return [Response]
102
102
  #
@@ -20,7 +20,7 @@ module LibDiscord
20
20
  # {https://discord.com/developers/docs/reference#snowflakes Discord
21
21
  # documentation "Snowflakes"}
22
22
  # @param interaction_token [#to_s]
23
- # @param json [Hash] JSON serializable payload
23
+ # @param json [#to_json] JSON serializable payload
24
24
  #
25
25
  # @return [Response]
26
26
  #
@@ -54,7 +54,7 @@ module LibDiscord
54
54
  # {https://discord.com/developers/docs/reference#snowflakes Discord
55
55
  # documentation "Snowflakes"}
56
56
  # @param interaction_token [#to_s]
57
- # @param json [Hash] JSON serializable payload
57
+ # @param json [#to_json] JSON serializable payload
58
58
  #
59
59
  # @return [Response]
60
60
  #
@@ -88,7 +88,7 @@ module LibDiscord
88
88
  # {https://discord.com/developers/docs/reference#snowflakes Discord
89
89
  # documentation "Snowflakes"}
90
90
  # @param interaction_token [#to_s]
91
- # @param json [Hash] JSON serializable payload
91
+ # @param json [#to_json] JSON serializable payload
92
92
  #
93
93
  # @return [Response]
94
94
  #
@@ -128,7 +128,7 @@ module LibDiscord
128
128
  # @param message_id [#to_s]
129
129
  # {https://discord.com/developers/docs/reference#snowflakes Discord
130
130
  # documentation "Snowflakes"}
131
- # @param json [Hash] JSON serializable payload
131
+ # @param json [#to_json] JSON serializable payload
132
132
  #
133
133
  # @return [Response]
134
134
  #
@@ -16,7 +16,7 @@ module LibDiscord
16
16
  # documentation "Stage Instance Resource"
17
17
  class StageInstance < Resource
18
18
  ##
19
- # @param json [Hash] JSON serializable payload
19
+ # @param json [#to_json] JSON serializable payload
20
20
  #
21
21
  # @return [Response]
22
22
  #
@@ -48,7 +48,7 @@ module LibDiscord
48
48
  # @param channel_id [#to_s]
49
49
  # {https://discord.com/developers/docs/reference#snowflakes Discord
50
50
  # documentation "Snowflakes"}
51
- # @param json [Hash] JSON serializable payload
51
+ # @param json [#to_json] JSON serializable payload
52
52
  #
53
53
  # @return [Response]
54
54
  #
@@ -78,7 +78,7 @@ module LibDiscord
78
78
  # @param guild_id [#to_s]
79
79
  # {https://discord.com/developers/docs/reference#snowflakes Discord
80
80
  # documentation "Snowflakes"}
81
- # @param json [Hash] JSON serializable payload
81
+ # @param json [#to_json] JSON serializable payload
82
82
  #
83
83
  # @return [Response]
84
84
  #
@@ -98,7 +98,7 @@ module LibDiscord
98
98
  # @param sticker_id [#to_s]
99
99
  # {https://discord.com/developers/docs/reference#snowflakes Discord
100
100
  # documentation "Snowflakes"}
101
- # @param json [Hash] JSON serializable payload
101
+ # @param json [#to_json] JSON serializable payload
102
102
  #
103
103
  # @return [Response]
104
104
  #
@@ -34,7 +34,7 @@ module LibDiscord
34
34
  # Check +params+ and +json+ kwargs before using them in a request.
35
35
  ResourceHttpKwargs = Types::Hash.schema(
36
36
  params?: Types::Params::Hash,
37
- json?: Types::JSON::Hash
37
+ json?: Types.Interface(:to_json)
38
38
  )
39
39
 
40
40
  ##
@@ -42,7 +42,7 @@ module LibDiscord
42
42
  end
43
43
 
44
44
  ##
45
- # @param json [Hash] JSON serializable payload
45
+ # @param json [#to_json] JSON serializable payload
46
46
  #
47
47
  # @return [Response]
48
48
  #
@@ -101,7 +101,7 @@ module LibDiscord
101
101
  end
102
102
 
103
103
  ##
104
- # @param json [Hash] JSON serializable payload
104
+ # @param json [#to_json] JSON serializable payload
105
105
  #
106
106
  # @return [Response]
107
107
  #
@@ -115,7 +115,7 @@ module LibDiscord
115
115
  end
116
116
 
117
117
  ##
118
- # @param json [Hash] JSON serializable payload
118
+ # @param json [#to_json] JSON serializable payload
119
119
  #
120
120
  # @return [Response]
121
121
  #
@@ -158,7 +158,7 @@ module LibDiscord
158
158
  # @param application_id [#to_s]
159
159
  # {https://discord.com/developers/docs/reference#snowflakes Discord
160
160
  # documentation "Snowflakes"}
161
- # @param json [Hash] JSON serializable payload
161
+ # @param json [#to_json] JSON serializable payload
162
162
  #
163
163
  # @return [Response]
164
164
  #
@@ -6,6 +6,6 @@ module LibDiscord
6
6
  #
7
7
  # @api private
8
8
  def self.version
9
- @version ||= Gem::Version.new("0.1.2")
9
+ @version ||= Gem::Version.new("0.1.3")
10
10
  end
11
11
  end
@@ -19,7 +19,7 @@ module LibDiscord
19
19
  # @param channel_id [#to_s]
20
20
  # {https://discord.com/developers/docs/reference#snowflakes Discord
21
21
  # documentation "Snowflakes"}
22
- # @param json [Hash] JSON serializable payload
22
+ # @param json [#to_json] JSON serializable payload
23
23
  #
24
24
  # @return [Response]
25
25
  #
@@ -101,7 +101,7 @@ module LibDiscord
101
101
  # @param webhook_id [#to_s]
102
102
  # {https://discord.com/developers/docs/reference#snowflakes Discord
103
103
  # documentation "Snowflakes"}
104
- # @param json [Hash] JSON serializable payload
104
+ # @param json [#to_json] JSON serializable payload
105
105
  #
106
106
  # @return [Response]
107
107
  #
@@ -119,7 +119,7 @@ module LibDiscord
119
119
  # {https://discord.com/developers/docs/reference#snowflakes Discord
120
120
  # documentation "Snowflakes"}
121
121
  # @param webhook_token [#to_s]
122
- # @param json [Hash] JSON serializable payload
122
+ # @param json [#to_json] JSON serializable payload
123
123
  #
124
124
  # @return [Response]
125
125
  #
@@ -177,7 +177,7 @@ module LibDiscord
177
177
  # {https://discord.com/developers/docs/reference#snowflakes Discord
178
178
  # documentation "Snowflakes"}
179
179
  # @param webhook_token [#to_s]
180
- # @param json [Hash] JSON serializable payload
180
+ # @param json [#to_json] JSON serializable payload
181
181
  # @param params [Hash] optional HTTP query parameters
182
182
  #
183
183
  # @return [Response]
@@ -261,7 +261,7 @@ module LibDiscord
261
261
  # @param message_id [#to_s]
262
262
  # {https://discord.com/developers/docs/reference#snowflakes Discord
263
263
  # documentation "Snowflakes"}
264
- # @param json [Hash] JSON serializable payload
264
+ # @param json [#to_json] JSON serializable payload
265
265
  # @param params [Hash] optional HTTP query parameters
266
266
  #
267
267
  # @return [Response]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lib_discord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Price
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-13 00:00:00.000000000 Z
11
+ date: 2024-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-container
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  - !ruby/object:Gem::Version
171
171
  version: '0'
172
172
  requirements: []
173
- rubygems_version: 3.5.10
173
+ rubygems_version: 3.5.15
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: Unfancy Discord API Ruby-bindings