Commit Graph

39 Commits

Author SHA1 Message Date
TriForMine 20616e8a36 Guilds helpers 2021-10-21 19:38:09 +02:00
Skillz4Killz 20e50b94fb fix: allow suppressing embeds on non bot msgs #1074 2021-09-13 01:02:06 +00:00
Niclas Egeler de562803b4 add missing export for editSlashCommandPermissions 2021-08-30 23:02:50 +02:00
Nicholas Sylke c44651a701 fix: export helper method in mod.ts 2021-06-20 19:21:07 -05:00
Skillz4Killz e9a359be66 fixes 2021-06-19 01:00:09 +00:00
rigormorrtiss ddf5d9f490 add(helpers): connectToVoiceChannel() (#1048)
* feat(helpers): add joinVoiceChannel() helper

* Remove if-statement validating if channelId is present or not

* refactor(helpers): use snakelize()

* Rename to connectToVoiceChannel()

Co-authored-by: ITOH <to@itoh.at>

* Require VIEW_CHANNEL permission including CONNECT

Co-authored-by: ITOH <to@itoh.at>

* Change default value of third argument to {}

* Remove usage of Partial and mark options as optional

* Default selfDeaf to true by default

* .

* Add connectToVoiceChannel() to helpers module

* docs(helpers): add jsdoc block to connectToVoiceChannel()

* Use AtLeastOne type for options

* Default value for selfMute option

* Update src/helpers/voice/connect_to_voice_channel.ts

Co-authored-by: ITOH <to@itoh.at>

Co-authored-by: ITOH <to@itoh.at>
2021-06-16 21:02:21 +02:00
ITOH 6792c6b97d fix this 2021-06-13 21:50:19 +02:00
Skillz a293cd27d3 shtuff 2021-05-27 23:45:12 -04:00
rigormorrtiss 275d17c6fe add: stage instances (#924)
* feat: implement stage instances

Reference: https://github.com/discord/discord-api-docs/pull/2898

* feat: implement stage instances

* Update src/types/misc/stage_instance.ts

Co-authored-by: ITOH <to@itoh.at>

* Update src/helpers/misc/delete_stage_instance.ts

Co-authored-by: ITOH <to@itoh.at>

* Update src/types/misc/stage_instance.ts

Co-authored-by: ITOH <to@itoh.at>

* Move stage instances related modules to channels module

* Move to channels

* Move to channels

* Add permission checks

* Add permissions checl

* Ad inhibitors

* style: fix lint warnings

* Do not throw & add import type

Co-authored-by: ITOH <to@itoh.at>
2021-05-12 14:57:45 +01:00
ITOH 1623e9e118 Merge branch 'main' of https://github.com/discordeno/discordeno into main 2021-05-05 20:20:45 +02:00
ITOH 781537bd17 change this 2021-05-05 20:19:19 +02:00
ITOH 7ff0d242ff hopefully the last dir change 2021-05-05 20:06:32 +02:00
ITOH 09d6177b5f add: new handlers mod export 2021-05-04 22:07:43 +02:00
itohatweb bb03468d56 Commit from GitHub Actions (Lint) 2021-05-03 20:59:18 +00:00
ITOH 6d0b0cb974 now sendWebhook 2021-05-03 22:58:06 +02:00
Skillz a1e40a670c fix exports for type guards 2021-05-01 11:06:25 -04:00
ITOH 8c347747dd delete: removeUserReaction 2021-04-30 15:22:48 +02:00
ITOH c50fb39b42 deleteServer to deleteGuild 2021-04-30 15:01:32 +02:00
ITOH 10b824901c Merge branch 'main' into fix-sbbb 2021-04-29 11:00:15 +02:00
ITOH 7e5176aa3a Update mod.ts 2021-04-28 22:34:21 +02:00
ITOH d244d83a6a Update mod.ts 2021-04-28 22:22:23 +02:00
ITOH 37de4b3922 Update mod.ts 2021-04-28 22:12:59 +02:00
ITOH e0ca050e13 Update mod.ts 2021-04-20 17:21:20 +02:00
ITOH 5e38471175 uups remove removed thing 2021-04-16 21:01:58 +02:00
ITOH 38bf6727ba add: editWelcomeScreen function 2021-04-14 10:40:56 +02:00
ITOH 9d4306ff39 add: getWelcomeScreen 2021-04-14 09:53:37 +02:00
ITOH 8098910d3d remove broken imports 2021-04-14 09:02:00 +02:00
TriForMine a2c389ec04 fix(helpers): add missing export for editBotStatus (#841) 2021-04-13 08:24:45 +01:00
Skillz4Killz a741e721f3 fix: more missing typings and remove swap roles 2021-04-12 18:35:24 +00:00
Skillz4Killz 91114a62c2 fix: category children (#800) 2021-04-10 10:01:50 +01:00
TriForMine d893b631dc fix(helpers): remove rawAvatarURL export (#748)
Removing rawAvatarURL export since it was removed in #743
2021-04-04 13:44:21 +04:00
Skillz4Killz 29ea05d7ff refactor: remove raw avatar ulr 2021-04-04 00:03:45 +00:00
ayntee eaff54f90f refactor: rename *ID to *Id (#710)
* refactor: rename *ID to *Id

* Update src/helpers/commands/delete_slash_command.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/commands/delete_slash_command.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/commands/delete_slash_response.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/commands/edit_slash_response.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/utils.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/utils.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/utils.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/utils.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/utils.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/commands/get_slash_command.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/commands/send_interaction_response.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/commands/upsert_slash_command.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/guilds/edit_widget.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/guilds/get_widget.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/guilds/get_widget.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/guilds/get_widget_image_url.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/guilds/get_widget_image_url.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/guilds/get_widget_settings.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update .gitignore

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update LICENSE

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/members/edit_bot_profile.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/members/edit_bot_profile.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/webhooks/create_webhook.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/webhooks/delete_webhook.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/constants.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/webhooks/edit_webhook.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/webhooks/execute_webhook.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/webhooks/get_webhook.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/rest/cache.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/rest/request.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/constants.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/commands/delete_slash_response.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/constants.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/constants.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/constants.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/constants.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/utils.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/utils.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Revert docs file

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
2021-03-29 21:03:46 +04:00
ayntee 9699f741fe refactor(helpers): rename createGuildChannel to createChannel (#678)
* refactor(helpers): rename createGuildChannel to createChannel

* idk
2021-03-19 13:03:24 +04:00
ayntee eba5679806 refactor(helpers): rename executeSlashCommand to sendInteractionResponse (#676) 2021-03-17 15:28:44 +04:00
ayntee e852dc315a fix: export aliases from mod.ts 2021-03-15 15:41:46 +04:00
ayntee 2d0b96c1e2 refactor(helpers): rename & replace deleteMessageByID() with deleteMessage() (#668)
* refactor(helpers): rename & replace deleteMessageByID() with deleteMessage()

* changes

* fix

* fix

* Update src/types/errors.ts
2021-03-13 11:47:53 -05:00
ayntee e9cbbbff7c refactor(helpers): separate functions into files (#667)
* refactor(helpers): separate functions into files

* idk

* idk
2021-03-13 08:10:31 -05:00
ayntee 8654aeded5 refactor: rename controllers to handlers and handlers to helpers (#660)
* refactor: rename controllers to handlers and handlers to helpers

* fmt
2021-03-11 21:41:03 +04:00