onyxcord 2.1.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. checksums.yaml +4 -4
  2. data/lib/onyxcord/application_commands/command.rb +4 -97
  3. data/lib/onyxcord/application_commands/context.rb +4 -94
  4. data/lib/onyxcord/application_commands/option.rb +4 -75
  5. data/lib/onyxcord/application_commands/registry.rb +4 -45
  6. data/lib/onyxcord/application_commands.rb +8 -5
  7. data/lib/onyxcord/bot.rb +24 -1759
  8. data/lib/onyxcord/{cache.rb → cache/manager.rb} +16 -14
  9. data/lib/onyxcord/cache/stores/gateway.rb +272 -0
  10. data/lib/onyxcord/commands/bot/channels.rb +48 -0
  11. data/lib/onyxcord/commands/bot/execution.rb +174 -0
  12. data/lib/onyxcord/commands/bot/message_dispatch.rb +58 -0
  13. data/lib/onyxcord/commands/bot/permissions.rb +72 -0
  14. data/lib/onyxcord/commands/bot.rb +209 -0
  15. data/lib/onyxcord/commands/container.rb +21 -2
  16. data/lib/onyxcord/commands/parser.rb +30 -1
  17. data/lib/onyxcord/container.rb +16 -960
  18. data/lib/onyxcord/core/bot/application_commands.rb +210 -0
  19. data/lib/onyxcord/core/bot/awaits.rb +112 -0
  20. data/lib/onyxcord/core/bot/invites.rb +42 -0
  21. data/lib/onyxcord/core/bot/messaging.rb +161 -0
  22. data/lib/onyxcord/core/bot/oauth.rb +27 -0
  23. data/lib/onyxcord/core/bot/presence.rb +103 -0
  24. data/lib/onyxcord/core/bot/runtime.rb +183 -0
  25. data/lib/onyxcord/core/bot/voice.rb +69 -0
  26. data/lib/onyxcord/{logger.rb → core/logger.rb} +5 -0
  27. data/lib/onyxcord/core/version.rb +5 -0
  28. data/lib/onyxcord/events/await/base.rb +48 -0
  29. data/lib/onyxcord/events/await.rb +1 -46
  30. data/lib/onyxcord/events/ban/base.rb +54 -0
  31. data/lib/onyxcord/events/ban/remove.rb +11 -0
  32. data/lib/onyxcord/events/bans.rb +2 -58
  33. data/lib/onyxcord/events/channels/base.rb +91 -0
  34. data/lib/onyxcord/events/channels/delete.rb +73 -0
  35. data/lib/onyxcord/events/channels/pins.rb +44 -0
  36. data/lib/onyxcord/events/channels/recipients.rb +77 -0
  37. data/lib/onyxcord/events/channels.rb +4 -239
  38. data/lib/onyxcord/events/guilds/audit_logs.rb +79 -0
  39. data/lib/onyxcord/events/guilds/base.rb +97 -0
  40. data/lib/onyxcord/events/guilds/emoji.rb +147 -0
  41. data/lib/onyxcord/events/guilds.rb +3 -267
  42. data/lib/onyxcord/events/handlers/channels.rb +133 -0
  43. data/lib/onyxcord/events/handlers/core.rb +146 -0
  44. data/lib/onyxcord/events/handlers/guilds.rb +375 -0
  45. data/lib/onyxcord/events/handlers/interactions.rb +238 -0
  46. data/lib/onyxcord/events/handlers/lifetime.rb +71 -0
  47. data/lib/onyxcord/events/handlers/messages.rb +218 -0
  48. data/lib/onyxcord/events/handlers/presence.rb +56 -0
  49. data/lib/onyxcord/events/handlers/raw.rb +39 -0
  50. data/lib/onyxcord/events/handlers/reactions.rb +98 -0
  51. data/lib/onyxcord/events/handlers/scheduled_events.rb +243 -0
  52. data/lib/onyxcord/events/handlers/voice.rb +46 -0
  53. data/lib/onyxcord/events/integration/base.rb +45 -0
  54. data/lib/onyxcord/events/integration/create.rb +11 -0
  55. data/lib/onyxcord/events/integration/delete.rb +48 -0
  56. data/lib/onyxcord/events/integration/update.rb +11 -0
  57. data/lib/onyxcord/events/integrations.rb +4 -98
  58. data/lib/onyxcord/events/interactions/application_commands.rb +185 -0
  59. data/lib/onyxcord/events/interactions/autocomplete.rb +62 -0
  60. data/lib/onyxcord/events/interactions/base.rb +175 -0
  61. data/lib/onyxcord/events/interactions/components.rb +221 -0
  62. data/lib/onyxcord/events/interactions/permissions.rb +53 -0
  63. data/lib/onyxcord/events/interactions.rb +5 -622
  64. data/lib/onyxcord/events/invite/create.rb +79 -0
  65. data/lib/onyxcord/events/invite/delete.rb +55 -0
  66. data/lib/onyxcord/events/invites.rb +2 -125
  67. data/lib/onyxcord/events/lifetime/base.rb +31 -0
  68. data/lib/onyxcord/events/lifetime.rb +1 -29
  69. data/lib/onyxcord/events/member/add.rb +12 -0
  70. data/lib/onyxcord/events/member/base.rb +67 -0
  71. data/lib/onyxcord/events/member/delete.rb +21 -0
  72. data/lib/onyxcord/events/member/update.rb +25 -0
  73. data/lib/onyxcord/events/members.rb +4 -108
  74. data/lib/onyxcord/events/message/base.rb +295 -0
  75. data/lib/onyxcord/events/message/ids.rb +71 -0
  76. data/lib/onyxcord/events/message/mentions.rb +55 -0
  77. data/lib/onyxcord/events/message/updates.rb +27 -0
  78. data/lib/onyxcord/events/message.rb +4 -397
  79. data/lib/onyxcord/events/poll/add.rb +11 -0
  80. data/lib/onyxcord/events/poll/base.rb +106 -0
  81. data/lib/onyxcord/events/poll/remove.rb +11 -0
  82. data/lib/onyxcord/events/polls.rb +3 -116
  83. data/lib/onyxcord/events/presence/playing.rb +77 -0
  84. data/lib/onyxcord/events/presence/status.rb +60 -0
  85. data/lib/onyxcord/events/presence.rb +2 -129
  86. data/lib/onyxcord/events/raw/base.rb +74 -0
  87. data/lib/onyxcord/events/raw.rb +1 -72
  88. data/lib/onyxcord/events/reactions/base.rb +143 -0
  89. data/lib/onyxcord/events/reactions/clear.rb +99 -0
  90. data/lib/onyxcord/events/reactions.rb +2 -216
  91. data/lib/onyxcord/events/role/create.rb +46 -0
  92. data/lib/onyxcord/events/role/delete.rb +40 -0
  93. data/lib/onyxcord/events/role/update.rb +11 -0
  94. data/lib/onyxcord/events/roles.rb +3 -85
  95. data/lib/onyxcord/events/scheduled_events/events.rb +112 -0
  96. data/lib/onyxcord/events/scheduled_events/users.rb +91 -0
  97. data/lib/onyxcord/events/scheduled_events.rb +2 -169
  98. data/lib/onyxcord/events/thread/base.rb +49 -0
  99. data/lib/onyxcord/events/thread/members.rb +44 -0
  100. data/lib/onyxcord/events/thread/update.rb +18 -0
  101. data/lib/onyxcord/events/threads.rb +3 -98
  102. data/lib/onyxcord/events/typing/base.rb +73 -0
  103. data/lib/onyxcord/events/typing.rb +1 -71
  104. data/lib/onyxcord/events/voice/server_update.rb +48 -0
  105. data/lib/onyxcord/events/voice/state_update.rb +137 -0
  106. data/lib/onyxcord/events/voice_server_update.rb +2 -46
  107. data/lib/onyxcord/events/voice_state_update.rb +2 -135
  108. data/lib/onyxcord/events/webhook/update.rb +65 -0
  109. data/lib/onyxcord/events/webhooks.rb +1 -63
  110. data/lib/onyxcord/gateway/client.rb +460 -0
  111. data/lib/onyxcord/interactions/command.rb +120 -0
  112. data/lib/onyxcord/interactions/context.rb +109 -0
  113. data/lib/onyxcord/interactions/internal/application_command.rb +203 -0
  114. data/lib/onyxcord/interactions/internal/message.rb +152 -0
  115. data/lib/onyxcord/interactions/internal/metadata.rb +109 -0
  116. data/lib/onyxcord/interactions/internal/option_builder.rb +230 -0
  117. data/lib/onyxcord/interactions/internal/permission_builder.rb +90 -0
  118. data/lib/onyxcord/interactions/option.rb +88 -0
  119. data/lib/onyxcord/interactions/registry.rb +50 -0
  120. data/lib/onyxcord/interactions.rb +16 -0
  121. data/lib/onyxcord/internal/async_runtime.rb +32 -0
  122. data/lib/onyxcord/internal/event_bus.rb +591 -0
  123. data/lib/onyxcord/internal/event_executor.rb +155 -0
  124. data/lib/onyxcord/internal/gateway/opcodes.rb +22 -0
  125. data/lib/onyxcord/internal/gateway/session.rb +45 -0
  126. data/lib/onyxcord/internal/http.rb +189 -0
  127. data/lib/onyxcord/internal/json.rb +51 -0
  128. data/lib/onyxcord/{message_payload.rb → internal/message_payload.rb} +3 -3
  129. data/lib/onyxcord/internal/rate_limiter/async_rest.rb +151 -0
  130. data/lib/onyxcord/internal/rate_limiter/gateway.rb +44 -0
  131. data/lib/onyxcord/internal/rate_limiter/rest.rb +144 -0
  132. data/lib/onyxcord/internal/websocket.rb +79 -0
  133. data/lib/onyxcord/light/data.rb +1 -1
  134. data/lib/onyxcord/light/integrations.rb +1 -1
  135. data/lib/onyxcord/light/light_bot.rb +7 -7
  136. data/lib/onyxcord/{data → models}/activity.rb +2 -2
  137. data/lib/onyxcord/{data → models}/application.rb +3 -3
  138. data/lib/onyxcord/{data → models}/avatar_decoration.rb +1 -1
  139. data/lib/onyxcord/{data → models}/channel.rb +23 -23
  140. data/lib/onyxcord/{data → models}/collectibles.rb +1 -1
  141. data/lib/onyxcord/{data → models}/emoji.rb +1 -1
  142. data/lib/onyxcord/models/interaction.rb +450 -0
  143. data/lib/onyxcord/{data → models}/invite.rb +1 -1
  144. data/lib/onyxcord/{data → models}/member.rb +11 -11
  145. data/lib/onyxcord/{data → models}/message.rb +18 -14
  146. data/lib/onyxcord/{data → models}/poll.rb +2 -2
  147. data/lib/onyxcord/{data → models}/primary_server.rb +1 -1
  148. data/lib/onyxcord/{data → models}/profile.rb +4 -4
  149. data/lib/onyxcord/{data → models}/role.rb +6 -12
  150. data/lib/onyxcord/{data → models}/scheduled_event.rb +5 -5
  151. data/lib/onyxcord/{data → models}/server.rb +41 -41
  152. data/lib/onyxcord/{data → models}/server_preview.rb +2 -2
  153. data/lib/onyxcord/{data → models}/team.rb +1 -1
  154. data/lib/onyxcord/{data → models}/user.rb +5 -5
  155. data/lib/onyxcord/{data → models}/webhook.rb +10 -10
  156. data/lib/onyxcord/models.rb +57 -0
  157. data/lib/onyxcord/{api.rb → rest/client.rb} +23 -22
  158. data/lib/onyxcord/{api → rest/routes}/application.rb +79 -57
  159. data/lib/onyxcord/rest/routes/channel/base.rb +73 -0
  160. data/lib/onyxcord/rest/routes/channel/groups.rb +78 -0
  161. data/lib/onyxcord/rest/routes/channel/messages.rb +130 -0
  162. data/lib/onyxcord/rest/routes/channel/permissions.rb +73 -0
  163. data/lib/onyxcord/rest/routes/channel/pins.rb +45 -0
  164. data/lib/onyxcord/rest/routes/channel/polls.rb +32 -0
  165. data/lib/onyxcord/rest/routes/channel/reactions.rb +86 -0
  166. data/lib/onyxcord/rest/routes/channel/threads.rb +176 -0
  167. data/lib/onyxcord/rest/routes/channel/webhooks.rb +47 -0
  168. data/lib/onyxcord/rest/routes/channel.rb +12 -0
  169. data/lib/onyxcord/{api/interaction.rb → rest/routes/interaction/base.rb} +7 -25
  170. data/lib/onyxcord/rest/routes/interaction/response.rb +24 -0
  171. data/lib/onyxcord/rest/routes/interaction.rb +4 -0
  172. data/lib/onyxcord/{api → rest/routes}/invite.rb +7 -7
  173. data/lib/onyxcord/rest/routes/server/admin.rb +174 -0
  174. data/lib/onyxcord/rest/routes/server/assets.rb +25 -0
  175. data/lib/onyxcord/rest/routes/server/bans.rb +67 -0
  176. data/lib/onyxcord/rest/routes/server/base.rb +77 -0
  177. data/lib/onyxcord/rest/routes/server/channels.rb +58 -0
  178. data/lib/onyxcord/rest/routes/server/emoji.rb +48 -0
  179. data/lib/onyxcord/rest/routes/server/members.rb +109 -0
  180. data/lib/onyxcord/rest/routes/server/messages.rb +19 -0
  181. data/lib/onyxcord/rest/routes/server/roles.rb +156 -0
  182. data/lib/onyxcord/rest/routes/server/scheduled_events.rb +86 -0
  183. data/lib/onyxcord/rest/routes/server.rb +12 -0
  184. data/lib/onyxcord/{api → rest/routes}/user.rb +23 -23
  185. data/lib/onyxcord/{api → rest/routes}/webhook.rb +22 -22
  186. data/lib/onyxcord/{allowed_mentions.rb → utils/allowed_mentions.rb} +1 -1
  187. data/lib/onyxcord/utils/timestamp.rb +69 -0
  188. data/lib/onyxcord/voice/{voice_bot.rb → client.rb} +4 -4
  189. data/lib/onyxcord/voice/encoder.rb +1 -1
  190. data/lib/onyxcord/voice/network/udp.rb +135 -0
  191. data/lib/onyxcord/voice/network/websocket.rb +225 -0
  192. data/lib/onyxcord/voice/network.rb +5 -357
  193. data/lib/onyxcord/webhooks/builder.rb +1 -1
  194. data/lib/onyxcord/webhooks/client.rb +13 -13
  195. data/lib/onyxcord/webhooks/modal/group_builder.rb +55 -0
  196. data/lib/onyxcord/webhooks/modal/label_builder.rb +183 -0
  197. data/lib/onyxcord/webhooks/modal.rb +2 -239
  198. data/lib/onyxcord/webhooks/version.rb +3 -3
  199. data/lib/onyxcord/webhooks/view/container_builder.rb +80 -0
  200. data/lib/onyxcord/webhooks/view/file_builder.rb +24 -0
  201. data/lib/onyxcord/webhooks/view/media_gallery_builder.rb +50 -0
  202. data/lib/onyxcord/webhooks/view/row_builder.rb +120 -0
  203. data/lib/onyxcord/webhooks/view/section_builder.rb +61 -0
  204. data/lib/onyxcord/webhooks/view/select_menu_builder.rb +77 -0
  205. data/lib/onyxcord/webhooks/view/separator_builder.rb +22 -0
  206. data/lib/onyxcord/webhooks/view/text_display_builder.rb +20 -0
  207. data/lib/onyxcord/webhooks/view.rb +9 -425
  208. data/lib/onyxcord.rb +106 -42
  209. metadata +207 -92
  210. data/.github/CONTRIBUTING.md +0 -13
  211. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
  212. data/.github/ISSUE_TEMPLATE/feature_request.md +0 -24
  213. data/.github/pull_request_template.md +0 -37
  214. data/.github/workflows/ci.yml +0 -78
  215. data/.github/workflows/codeql.yml +0 -65
  216. data/.github/workflows/deploy.yml +0 -54
  217. data/.github/workflows/release.yml +0 -51
  218. data/.gitignore +0 -17
  219. data/.markdownlint.json +0 -4
  220. data/.overcommit.yml +0 -7
  221. data/.rspec +0 -2
  222. data/.rubocop.yml +0 -129
  223. data/.yardopts +0 -1
  224. data/CHANGELOG.md +0 -257
  225. data/Gemfile +0 -6
  226. data/LICENSE.txt +0 -21
  227. data/README.md +0 -448
  228. data/Rakefile +0 -13
  229. data/lib/onyxcord/api/channel.rb +0 -703
  230. data/lib/onyxcord/api/server.rb +0 -775
  231. data/lib/onyxcord/async/runtime.rb +0 -30
  232. data/lib/onyxcord/commands/command_bot.rb +0 -505
  233. data/lib/onyxcord/data/interaction.rb +0 -1151
  234. data/lib/onyxcord/data.rb +0 -57
  235. data/lib/onyxcord/event_executor.rb +0 -153
  236. data/lib/onyxcord/gateway.rb +0 -505
  237. data/lib/onyxcord/http.rb +0 -186
  238. data/lib/onyxcord/json.rb +0 -49
  239. data/lib/onyxcord/rate_limiter/async_rest.rb +0 -150
  240. data/lib/onyxcord/rate_limiter/gateway.rb +0 -42
  241. data/lib/onyxcord/rate_limiter/rest.rb +0 -142
  242. data/lib/onyxcord/version.rb +0 -7
  243. data/lib/onyxcord/websocket.rb +0 -77
  244. data/onyxcord.gemspec +0 -63
  245. /data/lib/onyxcord/{configuration.rb → core/configuration.rb} +0 -0
  246. /data/lib/onyxcord/{errors.rb → core/errors.rb} +0 -0
  247. /data/lib/onyxcord/{upload.rb → internal/upload.rb} +0 -0
  248. /data/lib/onyxcord/{data → models}/attachment.rb +0 -0
  249. /data/lib/onyxcord/{data → models}/audit_logs.rb +0 -0
  250. /data/lib/onyxcord/{data → models}/call.rb +0 -0
  251. /data/lib/onyxcord/{data → models}/channel_tag.rb +0 -0
  252. /data/lib/onyxcord/{data → models}/component.rb +0 -0
  253. /data/lib/onyxcord/{data → models}/embed.rb +0 -0
  254. /data/lib/onyxcord/{data → models}/install_params.rb +0 -0
  255. /data/lib/onyxcord/{data → models}/integration.rb +0 -0
  256. /data/lib/onyxcord/{data → models}/message_activity.rb +0 -0
  257. /data/lib/onyxcord/{data → models}/overwrite.rb +0 -0
  258. /data/lib/onyxcord/{data → models}/reaction.rb +0 -0
  259. /data/lib/onyxcord/{data → models}/recipient.rb +0 -0
  260. /data/lib/onyxcord/{data → models}/role_connection_data.rb +0 -0
  261. /data/lib/onyxcord/{data → models}/role_subscription.rb +0 -0
  262. /data/lib/onyxcord/{data → models}/snapshot.rb +0 -0
  263. /data/lib/onyxcord/{data → models}/timestamp.rb +0 -0
  264. /data/lib/onyxcord/{data → models}/voice_region.rb +0 -0
  265. /data/lib/onyxcord/{data → models}/voice_state.rb +0 -0
  266. /data/lib/onyxcord/{colour_rgb.rb → utils/colour_rgb.rb} +0 -0
  267. /data/lib/onyxcord/{id_object.rb → utils/id_object.rb} +0 -0
  268. /data/lib/onyxcord/{message_components.rb → utils/message_components.rb} +0 -0
  269. /data/lib/onyxcord/{paginator.rb → utils/paginator.rb} +0 -0
  270. /data/lib/onyxcord/{permissions.rb → utils/permissions.rb} +0 -0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onyxcord
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gustavo Silva
@@ -157,6 +157,20 @@ dependencies:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
159
  version: '3.0'
160
+ - !ruby/object:Gem::Dependency
161
+ name: zeitwerk
162
+ requirement: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '2.8'
167
+ type: :runtime
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '2.8'
160
174
  - !ruby/object:Gem::Dependency
161
175
  name: ffi
162
176
  requirement: !ruby/object:Gem::Requirement
@@ -365,150 +379,251 @@ executables: []
365
379
  extensions: []
366
380
  extra_rdoc_files: []
367
381
  files:
368
- - ".github/CONTRIBUTING.md"
369
- - ".github/ISSUE_TEMPLATE/bug_report.md"
370
- - ".github/ISSUE_TEMPLATE/feature_request.md"
371
- - ".github/pull_request_template.md"
372
- - ".github/workflows/ci.yml"
373
- - ".github/workflows/codeql.yml"
374
- - ".github/workflows/deploy.yml"
375
- - ".github/workflows/release.yml"
376
- - ".gitignore"
377
- - ".markdownlint.json"
378
- - ".overcommit.yml"
379
- - ".rspec"
380
- - ".rubocop.yml"
381
- - ".yardopts"
382
- - CHANGELOG.md
383
- - Gemfile
384
- - LICENSE.txt
385
- - README.md
386
- - Rakefile
387
382
  - bin/console
388
383
  - bin/setup
389
384
  - lib/onyxcord.rb
390
- - lib/onyxcord/allowed_mentions.rb
391
- - lib/onyxcord/api.rb
392
- - lib/onyxcord/api/application.rb
393
- - lib/onyxcord/api/channel.rb
394
- - lib/onyxcord/api/interaction.rb
395
- - lib/onyxcord/api/invite.rb
396
- - lib/onyxcord/api/server.rb
397
- - lib/onyxcord/api/user.rb
398
- - lib/onyxcord/api/webhook.rb
399
385
  - lib/onyxcord/application_commands.rb
400
386
  - lib/onyxcord/application_commands/command.rb
401
387
  - lib/onyxcord/application_commands/context.rb
402
388
  - lib/onyxcord/application_commands/option.rb
403
389
  - lib/onyxcord/application_commands/registry.rb
404
- - lib/onyxcord/async/runtime.rb
405
390
  - lib/onyxcord/await.rb
406
391
  - lib/onyxcord/bot.rb
407
- - lib/onyxcord/cache.rb
408
- - lib/onyxcord/colour_rgb.rb
409
- - lib/onyxcord/commands/command_bot.rb
392
+ - lib/onyxcord/cache/manager.rb
393
+ - lib/onyxcord/cache/stores/gateway.rb
394
+ - lib/onyxcord/commands/bot.rb
395
+ - lib/onyxcord/commands/bot/channels.rb
396
+ - lib/onyxcord/commands/bot/execution.rb
397
+ - lib/onyxcord/commands/bot/message_dispatch.rb
398
+ - lib/onyxcord/commands/bot/permissions.rb
410
399
  - lib/onyxcord/commands/container.rb
411
400
  - lib/onyxcord/commands/events.rb
412
401
  - lib/onyxcord/commands/parser.rb
413
402
  - lib/onyxcord/commands/rate_limiter.rb
414
- - lib/onyxcord/configuration.rb
415
403
  - lib/onyxcord/container.rb
416
- - lib/onyxcord/data.rb
417
- - lib/onyxcord/data/activity.rb
418
- - lib/onyxcord/data/application.rb
419
- - lib/onyxcord/data/attachment.rb
420
- - lib/onyxcord/data/audit_logs.rb
421
- - lib/onyxcord/data/avatar_decoration.rb
422
- - lib/onyxcord/data/call.rb
423
- - lib/onyxcord/data/channel.rb
424
- - lib/onyxcord/data/channel_tag.rb
425
- - lib/onyxcord/data/collectibles.rb
426
- - lib/onyxcord/data/component.rb
427
- - lib/onyxcord/data/embed.rb
428
- - lib/onyxcord/data/emoji.rb
429
- - lib/onyxcord/data/install_params.rb
430
- - lib/onyxcord/data/integration.rb
431
- - lib/onyxcord/data/interaction.rb
432
- - lib/onyxcord/data/invite.rb
433
- - lib/onyxcord/data/member.rb
434
- - lib/onyxcord/data/message.rb
435
- - lib/onyxcord/data/message_activity.rb
436
- - lib/onyxcord/data/overwrite.rb
437
- - lib/onyxcord/data/poll.rb
438
- - lib/onyxcord/data/primary_server.rb
439
- - lib/onyxcord/data/profile.rb
440
- - lib/onyxcord/data/reaction.rb
441
- - lib/onyxcord/data/recipient.rb
442
- - lib/onyxcord/data/role.rb
443
- - lib/onyxcord/data/role_connection_data.rb
444
- - lib/onyxcord/data/role_subscription.rb
445
- - lib/onyxcord/data/scheduled_event.rb
446
- - lib/onyxcord/data/server.rb
447
- - lib/onyxcord/data/server_preview.rb
448
- - lib/onyxcord/data/snapshot.rb
449
- - lib/onyxcord/data/team.rb
450
- - lib/onyxcord/data/timestamp.rb
451
- - lib/onyxcord/data/user.rb
452
- - lib/onyxcord/data/voice_region.rb
453
- - lib/onyxcord/data/voice_state.rb
454
- - lib/onyxcord/data/webhook.rb
455
- - lib/onyxcord/errors.rb
456
- - lib/onyxcord/event_executor.rb
404
+ - lib/onyxcord/core/bot/application_commands.rb
405
+ - lib/onyxcord/core/bot/awaits.rb
406
+ - lib/onyxcord/core/bot/invites.rb
407
+ - lib/onyxcord/core/bot/messaging.rb
408
+ - lib/onyxcord/core/bot/oauth.rb
409
+ - lib/onyxcord/core/bot/presence.rb
410
+ - lib/onyxcord/core/bot/runtime.rb
411
+ - lib/onyxcord/core/bot/voice.rb
412
+ - lib/onyxcord/core/configuration.rb
413
+ - lib/onyxcord/core/errors.rb
414
+ - lib/onyxcord/core/logger.rb
415
+ - lib/onyxcord/core/version.rb
457
416
  - lib/onyxcord/events/await.rb
417
+ - lib/onyxcord/events/await/base.rb
418
+ - lib/onyxcord/events/ban/base.rb
419
+ - lib/onyxcord/events/ban/remove.rb
458
420
  - lib/onyxcord/events/bans.rb
459
421
  - lib/onyxcord/events/channels.rb
422
+ - lib/onyxcord/events/channels/base.rb
423
+ - lib/onyxcord/events/channels/delete.rb
424
+ - lib/onyxcord/events/channels/pins.rb
425
+ - lib/onyxcord/events/channels/recipients.rb
460
426
  - lib/onyxcord/events/generic.rb
461
427
  - lib/onyxcord/events/guilds.rb
428
+ - lib/onyxcord/events/guilds/audit_logs.rb
429
+ - lib/onyxcord/events/guilds/base.rb
430
+ - lib/onyxcord/events/guilds/emoji.rb
431
+ - lib/onyxcord/events/handlers/channels.rb
432
+ - lib/onyxcord/events/handlers/core.rb
433
+ - lib/onyxcord/events/handlers/guilds.rb
434
+ - lib/onyxcord/events/handlers/interactions.rb
435
+ - lib/onyxcord/events/handlers/lifetime.rb
436
+ - lib/onyxcord/events/handlers/messages.rb
437
+ - lib/onyxcord/events/handlers/presence.rb
438
+ - lib/onyxcord/events/handlers/raw.rb
439
+ - lib/onyxcord/events/handlers/reactions.rb
440
+ - lib/onyxcord/events/handlers/scheduled_events.rb
441
+ - lib/onyxcord/events/handlers/voice.rb
442
+ - lib/onyxcord/events/integration/base.rb
443
+ - lib/onyxcord/events/integration/create.rb
444
+ - lib/onyxcord/events/integration/delete.rb
445
+ - lib/onyxcord/events/integration/update.rb
462
446
  - lib/onyxcord/events/integrations.rb
463
447
  - lib/onyxcord/events/interactions.rb
448
+ - lib/onyxcord/events/interactions/application_commands.rb
449
+ - lib/onyxcord/events/interactions/autocomplete.rb
450
+ - lib/onyxcord/events/interactions/base.rb
451
+ - lib/onyxcord/events/interactions/components.rb
452
+ - lib/onyxcord/events/interactions/permissions.rb
453
+ - lib/onyxcord/events/invite/create.rb
454
+ - lib/onyxcord/events/invite/delete.rb
464
455
  - lib/onyxcord/events/invites.rb
465
456
  - lib/onyxcord/events/lifetime.rb
457
+ - lib/onyxcord/events/lifetime/base.rb
458
+ - lib/onyxcord/events/member/add.rb
459
+ - lib/onyxcord/events/member/base.rb
460
+ - lib/onyxcord/events/member/delete.rb
461
+ - lib/onyxcord/events/member/update.rb
466
462
  - lib/onyxcord/events/members.rb
467
463
  - lib/onyxcord/events/message.rb
464
+ - lib/onyxcord/events/message/base.rb
465
+ - lib/onyxcord/events/message/ids.rb
466
+ - lib/onyxcord/events/message/mentions.rb
467
+ - lib/onyxcord/events/message/updates.rb
468
+ - lib/onyxcord/events/poll/add.rb
469
+ - lib/onyxcord/events/poll/base.rb
470
+ - lib/onyxcord/events/poll/remove.rb
468
471
  - lib/onyxcord/events/polls.rb
469
472
  - lib/onyxcord/events/presence.rb
473
+ - lib/onyxcord/events/presence/playing.rb
474
+ - lib/onyxcord/events/presence/status.rb
470
475
  - lib/onyxcord/events/raw.rb
476
+ - lib/onyxcord/events/raw/base.rb
471
477
  - lib/onyxcord/events/reactions.rb
478
+ - lib/onyxcord/events/reactions/base.rb
479
+ - lib/onyxcord/events/reactions/clear.rb
480
+ - lib/onyxcord/events/role/create.rb
481
+ - lib/onyxcord/events/role/delete.rb
482
+ - lib/onyxcord/events/role/update.rb
472
483
  - lib/onyxcord/events/roles.rb
473
484
  - lib/onyxcord/events/scheduled_events.rb
485
+ - lib/onyxcord/events/scheduled_events/events.rb
486
+ - lib/onyxcord/events/scheduled_events/users.rb
487
+ - lib/onyxcord/events/thread/base.rb
488
+ - lib/onyxcord/events/thread/members.rb
489
+ - lib/onyxcord/events/thread/update.rb
474
490
  - lib/onyxcord/events/threads.rb
475
491
  - lib/onyxcord/events/typing.rb
492
+ - lib/onyxcord/events/typing/base.rb
493
+ - lib/onyxcord/events/voice/server_update.rb
494
+ - lib/onyxcord/events/voice/state_update.rb
476
495
  - lib/onyxcord/events/voice_server_update.rb
477
496
  - lib/onyxcord/events/voice_state_update.rb
497
+ - lib/onyxcord/events/webhook/update.rb
478
498
  - lib/onyxcord/events/webhooks.rb
479
- - lib/onyxcord/gateway.rb
480
- - lib/onyxcord/http.rb
481
- - lib/onyxcord/id_object.rb
482
- - lib/onyxcord/json.rb
499
+ - lib/onyxcord/gateway/client.rb
500
+ - lib/onyxcord/interactions.rb
501
+ - lib/onyxcord/interactions/command.rb
502
+ - lib/onyxcord/interactions/context.rb
503
+ - lib/onyxcord/interactions/internal/application_command.rb
504
+ - lib/onyxcord/interactions/internal/message.rb
505
+ - lib/onyxcord/interactions/internal/metadata.rb
506
+ - lib/onyxcord/interactions/internal/option_builder.rb
507
+ - lib/onyxcord/interactions/internal/permission_builder.rb
508
+ - lib/onyxcord/interactions/option.rb
509
+ - lib/onyxcord/interactions/registry.rb
510
+ - lib/onyxcord/internal/async_runtime.rb
511
+ - lib/onyxcord/internal/event_bus.rb
512
+ - lib/onyxcord/internal/event_executor.rb
513
+ - lib/onyxcord/internal/gateway/opcodes.rb
514
+ - lib/onyxcord/internal/gateway/session.rb
515
+ - lib/onyxcord/internal/http.rb
516
+ - lib/onyxcord/internal/json.rb
517
+ - lib/onyxcord/internal/message_payload.rb
518
+ - lib/onyxcord/internal/rate_limiter/async_rest.rb
519
+ - lib/onyxcord/internal/rate_limiter/gateway.rb
520
+ - lib/onyxcord/internal/rate_limiter/rest.rb
521
+ - lib/onyxcord/internal/upload.rb
522
+ - lib/onyxcord/internal/websocket.rb
483
523
  - lib/onyxcord/light.rb
484
524
  - lib/onyxcord/light/data.rb
485
525
  - lib/onyxcord/light/integrations.rb
486
526
  - lib/onyxcord/light/light_bot.rb
487
- - lib/onyxcord/logger.rb
488
- - lib/onyxcord/message_components.rb
489
- - lib/onyxcord/message_payload.rb
490
- - lib/onyxcord/paginator.rb
491
- - lib/onyxcord/permissions.rb
492
- - lib/onyxcord/rate_limiter/async_rest.rb
493
- - lib/onyxcord/rate_limiter/gateway.rb
494
- - lib/onyxcord/rate_limiter/rest.rb
495
- - lib/onyxcord/upload.rb
496
- - lib/onyxcord/version.rb
527
+ - lib/onyxcord/models.rb
528
+ - lib/onyxcord/models/activity.rb
529
+ - lib/onyxcord/models/application.rb
530
+ - lib/onyxcord/models/attachment.rb
531
+ - lib/onyxcord/models/audit_logs.rb
532
+ - lib/onyxcord/models/avatar_decoration.rb
533
+ - lib/onyxcord/models/call.rb
534
+ - lib/onyxcord/models/channel.rb
535
+ - lib/onyxcord/models/channel_tag.rb
536
+ - lib/onyxcord/models/collectibles.rb
537
+ - lib/onyxcord/models/component.rb
538
+ - lib/onyxcord/models/embed.rb
539
+ - lib/onyxcord/models/emoji.rb
540
+ - lib/onyxcord/models/install_params.rb
541
+ - lib/onyxcord/models/integration.rb
542
+ - lib/onyxcord/models/interaction.rb
543
+ - lib/onyxcord/models/invite.rb
544
+ - lib/onyxcord/models/member.rb
545
+ - lib/onyxcord/models/message.rb
546
+ - lib/onyxcord/models/message_activity.rb
547
+ - lib/onyxcord/models/overwrite.rb
548
+ - lib/onyxcord/models/poll.rb
549
+ - lib/onyxcord/models/primary_server.rb
550
+ - lib/onyxcord/models/profile.rb
551
+ - lib/onyxcord/models/reaction.rb
552
+ - lib/onyxcord/models/recipient.rb
553
+ - lib/onyxcord/models/role.rb
554
+ - lib/onyxcord/models/role_connection_data.rb
555
+ - lib/onyxcord/models/role_subscription.rb
556
+ - lib/onyxcord/models/scheduled_event.rb
557
+ - lib/onyxcord/models/server.rb
558
+ - lib/onyxcord/models/server_preview.rb
559
+ - lib/onyxcord/models/snapshot.rb
560
+ - lib/onyxcord/models/team.rb
561
+ - lib/onyxcord/models/timestamp.rb
562
+ - lib/onyxcord/models/user.rb
563
+ - lib/onyxcord/models/voice_region.rb
564
+ - lib/onyxcord/models/voice_state.rb
565
+ - lib/onyxcord/models/webhook.rb
566
+ - lib/onyxcord/rest/client.rb
567
+ - lib/onyxcord/rest/routes/application.rb
568
+ - lib/onyxcord/rest/routes/channel.rb
569
+ - lib/onyxcord/rest/routes/channel/base.rb
570
+ - lib/onyxcord/rest/routes/channel/groups.rb
571
+ - lib/onyxcord/rest/routes/channel/messages.rb
572
+ - lib/onyxcord/rest/routes/channel/permissions.rb
573
+ - lib/onyxcord/rest/routes/channel/pins.rb
574
+ - lib/onyxcord/rest/routes/channel/polls.rb
575
+ - lib/onyxcord/rest/routes/channel/reactions.rb
576
+ - lib/onyxcord/rest/routes/channel/threads.rb
577
+ - lib/onyxcord/rest/routes/channel/webhooks.rb
578
+ - lib/onyxcord/rest/routes/interaction.rb
579
+ - lib/onyxcord/rest/routes/interaction/base.rb
580
+ - lib/onyxcord/rest/routes/interaction/response.rb
581
+ - lib/onyxcord/rest/routes/invite.rb
582
+ - lib/onyxcord/rest/routes/server.rb
583
+ - lib/onyxcord/rest/routes/server/admin.rb
584
+ - lib/onyxcord/rest/routes/server/assets.rb
585
+ - lib/onyxcord/rest/routes/server/bans.rb
586
+ - lib/onyxcord/rest/routes/server/base.rb
587
+ - lib/onyxcord/rest/routes/server/channels.rb
588
+ - lib/onyxcord/rest/routes/server/emoji.rb
589
+ - lib/onyxcord/rest/routes/server/members.rb
590
+ - lib/onyxcord/rest/routes/server/messages.rb
591
+ - lib/onyxcord/rest/routes/server/roles.rb
592
+ - lib/onyxcord/rest/routes/server/scheduled_events.rb
593
+ - lib/onyxcord/rest/routes/user.rb
594
+ - lib/onyxcord/rest/routes/webhook.rb
595
+ - lib/onyxcord/utils/allowed_mentions.rb
596
+ - lib/onyxcord/utils/colour_rgb.rb
597
+ - lib/onyxcord/utils/id_object.rb
598
+ - lib/onyxcord/utils/message_components.rb
599
+ - lib/onyxcord/utils/paginator.rb
600
+ - lib/onyxcord/utils/permissions.rb
601
+ - lib/onyxcord/utils/timestamp.rb
602
+ - lib/onyxcord/voice/client.rb
497
603
  - lib/onyxcord/voice/encoder.rb
498
604
  - lib/onyxcord/voice/network.rb
605
+ - lib/onyxcord/voice/network/udp.rb
606
+ - lib/onyxcord/voice/network/websocket.rb
499
607
  - lib/onyxcord/voice/opcodes.rb
500
608
  - lib/onyxcord/voice/sodium.rb
501
609
  - lib/onyxcord/voice/timer.rb
502
- - lib/onyxcord/voice/voice_bot.rb
503
610
  - lib/onyxcord/webhooks.rb
504
611
  - lib/onyxcord/webhooks/builder.rb
505
612
  - lib/onyxcord/webhooks/client.rb
506
613
  - lib/onyxcord/webhooks/embeds.rb
507
614
  - lib/onyxcord/webhooks/modal.rb
615
+ - lib/onyxcord/webhooks/modal/group_builder.rb
616
+ - lib/onyxcord/webhooks/modal/label_builder.rb
508
617
  - lib/onyxcord/webhooks/version.rb
509
618
  - lib/onyxcord/webhooks/view.rb
510
- - lib/onyxcord/websocket.rb
511
- - onyxcord.gemspec
619
+ - lib/onyxcord/webhooks/view/container_builder.rb
620
+ - lib/onyxcord/webhooks/view/file_builder.rb
621
+ - lib/onyxcord/webhooks/view/media_gallery_builder.rb
622
+ - lib/onyxcord/webhooks/view/row_builder.rb
623
+ - lib/onyxcord/webhooks/view/section_builder.rb
624
+ - lib/onyxcord/webhooks/view/select_menu_builder.rb
625
+ - lib/onyxcord/webhooks/view/separator_builder.rb
626
+ - lib/onyxcord/webhooks/view/text_display_builder.rb
512
627
  homepage: https://github.com/kruldevb/OnyxCord
513
628
  licenses:
514
629
  - MIT
@@ -1,13 +0,0 @@
1
- # Contributing guidelines
2
-
3
- Any contributions are very much appreciated! This project is relatively relaxed when it comes to guidelines, however
4
- there are still some things that would be nice to have considered.
5
-
6
- For bug reports, please try to include a code sample if at all appropriate for
7
- the issue, so we can reproduce it on our own machines.
8
-
9
- For PRs, please make sure that you tested your code before every push; it's a little annoying to keep having to get back
10
- to a PR because of small avoidable oversights. (Huge bonus points if you're adding specs for your code! This project
11
- has very few specs in places where it should have more so every added spec is very much appreciated.)
12
-
13
- If you have any questions at all, don't be afraid to ask in the [onyxcord channel on Discord](https://discord.gg/cyK3Hjm).
@@ -1,38 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Report a bug to help us improve the library
4
- ---
5
-
6
- # Summary
7
-
8
- <!---
9
- First, please check to see that another issue or pull request (open or closed)
10
- already addresses the problem you are facing. If you are not sure, please ask
11
- in the Discord channel (link below).
12
-
13
- Describe the bug you are encountering with as much detail as you can.
14
- If you are not sure if a small detail is relevant, include it anyways!
15
-
16
- Include simple code examples that will reproduce the bug.
17
- Include any exceptions you are encountering in your logs, including
18
- the initial error message and the backtrace that follows.
19
-
20
- Stuck or need help? Join the Discord! https://discord.gg/cyK3Hjm
21
- -->
22
-
23
- ---
24
-
25
- ## Environment
26
-
27
- <!---
28
- These are some commands to run to give us basic information about
29
- your Ruby environment. Some issues may be version, OS, or hardware specific.
30
- --->
31
-
32
- **Ruby version:**
33
-
34
- <!--- Paste full output of `ruby -v` here --->
35
-
36
- **OnyxCord version:**
37
-
38
- <!--- Paste full output of `gem list onyxcord` or `bundle list onyxcord` here --->
@@ -1,24 +0,0 @@
1
- ---
2
- name: Feature Request
3
- about: Request a new feature, or change an existing one
4
- ---
5
-
6
- <!---
7
- Describe your feature request in as much detail as you can here.
8
-
9
- Include why you want this feature. For example:
10
-
11
- - It is a feature supported by Discord's API, but missing from the library
12
-
13
- - It is a feature that would simplify a lot of your bots code
14
-
15
- - It is a feature present in other popular Discord libraries
16
-
17
- Include simple code examples (pseudocode is fine) that demonstrate
18
- what you want to do.
19
-
20
- Do your best to think about how this new feature would impact the code
21
- of other people who use onyxcord, and not just your own bot's codebase.
22
-
23
- Stuck or need help? Join the Discord! https://discord.gg/cyK3Hjm
24
- --->
@@ -1,37 +0,0 @@
1
- # Summary
2
-
3
- <!---
4
- Describe the general goal of your pull request here:
5
-
6
- - Include details about any issues you encountered that inspired
7
- the pull request, such as bugs or missing features.
8
-
9
- - If adding or changing features, include a small example that showcases
10
- the new behavior.
11
-
12
- - Reference any related issues or pull requests.
13
-
14
- Stuck or need help? Join the Discord! https://discord.gg/cyK3Hjm
15
- --->
16
-
17
- ---
18
-
19
- <!---
20
- List each individual change you made to the library here in the appropriate
21
- section in short, bulleted sentences.
22
-
23
- This will aid in reviewing your pull request, and for adding it to the
24
- changelog later.
25
-
26
- You may remove sections that have no items if you want.
27
- --->
28
-
29
- ## Added
30
-
31
- ## Changed
32
-
33
- ## Deprecated
34
-
35
- ## Removed
36
-
37
- ## Fixed
@@ -1,78 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches: [main]
6
- pull_request:
7
-
8
- jobs:
9
- # --- Test on multiple Ruby versions ---
10
- test:
11
- runs-on: ubuntu-latest
12
- strategy:
13
- matrix:
14
- ruby: [3.3, 3.4, 4.0]
15
- container:
16
- image: ruby:${{ matrix.ruby }}-alpine
17
- steps:
18
- - uses: actions/checkout@v4
19
- - name: Install OS packages
20
- run: apk add git build-base ruby-dev libsodium-dev
21
- - name: Cache bundle
22
- uses: actions/cache@v4
23
- with:
24
- path: vendor/bundle
25
- key: bundle-${{ hashFiles('Gemfile', 'onyxcord.gemspec') }}-${{ matrix.ruby }}
26
- restore-keys: |
27
- bundle-${{ matrix.ruby }}
28
- - name: Install dependencies
29
- run: bundle config set path vendor/bundle && bundle install
30
- - name: Run RSpec
31
- run: |
32
- mkdir -p rspec
33
- bundle exec rspec --format progress --format RspecJunitFormatter -o rspec/rspec.xml
34
- - name: Upload test results
35
- uses: actions/upload-artifact@v4
36
- with:
37
- name: rspec-results-${{ matrix.ruby }}
38
- path: rspec/rspec.xml
39
-
40
- # --- Rubocop ---
41
- rubocop:
42
- runs-on: ubuntu-latest
43
- container:
44
- image: ruby:3.3-alpine
45
- steps:
46
- - uses: actions/checkout@v4
47
- - name: Install OS packages
48
- run: apk add git build-base ruby-dev libsodium-dev
49
- - name: Cache bundle
50
- uses: actions/cache@v4
51
- with:
52
- path: vendor/bundle
53
- key: bundle-${{ hashFiles('Gemfile', 'onyxcord.gemspec') }}-rubocop
54
- - name: Install dependencies
55
- run: bundle config set path vendor/bundle && bundle install
56
- - name: Run Rubocop
57
- run: bundle exec rubocop
58
-
59
- # --- Generate YARD docs ---
60
- yard:
61
- runs-on: ubuntu-latest
62
- container:
63
- image: ruby:3.3-alpine
64
- steps:
65
- - uses: actions/checkout@v4
66
- - name: Install OS packages
67
- run: apk add git build-base ruby-dev libsodium-dev
68
- - name: Cache bundle
69
- uses: actions/cache@v4
70
- with:
71
- path: vendor/bundle
72
- key: bundle-${{ hashFiles('Gemfile', 'onyxcord.gemspec') }}-yard
73
- - name: Install dependencies
74
- run: bundle config set path vendor/bundle && bundle install
75
- - name: Run YARD
76
- run: |
77
- mkdir -p docs
78
- bundle exec yard --output-dir docs
@@ -1,65 +0,0 @@
1
- name: "CodeQL"
2
-
3
- on:
4
- push:
5
- branches: [ 'main' ]
6
- pull_request:
7
- # The branches below must be a subset of the branches above
8
- branches: [ 'main' ]
9
- schedule:
10
- - cron: '29 6 * * 5'
11
-
12
- jobs:
13
- analyze:
14
- name: Analyze
15
- runs-on: ubuntu-latest
16
- permissions:
17
- actions: read
18
- contents: read
19
- security-events: write
20
-
21
- strategy:
22
- fail-fast: false
23
- matrix:
24
- language: [ 'ruby' ]
25
- # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
26
- # Use only 'java' to analyze code written in Java, Kotlin or both
27
- # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
28
- # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
29
-
30
- steps:
31
- - name: Checkout repository
32
- uses: actions/checkout@v3
33
-
34
- # Initializes the CodeQL tools for scanning.
35
- - name: Initialize CodeQL
36
- uses: github/codeql-action/init@v3
37
- with:
38
- languages: ${{ matrix.language }}
39
- # If you wish to specify custom queries, you can do so here or in a config file.
40
- # By default, queries listed here will override any specified in a config file.
41
- # Prefix the list here with "+" to use these queries and those in the config file.
42
-
43
- # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
44
- # queries: security-extended,security-and-quality
45
-
46
-
47
- # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
48
- # If this step fails, then you should remove it and run the build manually (see below)
49
- - name: Autobuild
50
- uses: github/codeql-action/autobuild@v3
51
-
52
- # ℹ️ Command-line programs to run using the OS shell.
53
- # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
54
-
55
- # If the Autobuild fails above, remove it and uncomment the following three lines.
56
- # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
57
-
58
- # - run: |
59
- # echo "Run, Build Application using script"
60
- # ./location_of_script_within_repo/buildscript.sh
61
-
62
- - name: Perform CodeQL Analysis
63
- uses: github/codeql-action/analyze@v3
64
- with:
65
- category: "/language:${{matrix.language}}"