Commit Graph

1471 Commits

Author SHA1 Message Date
ayntee 45a3246370 fix(ws/shard): update status update payload (#559)
* fix(ws/shard): update status update payload

* :(

* Update src/types/discord.ts

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

* it\'s activitypayload

* Update src/types/discord.ts

* idk

* idk

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
2021-03-08 19:41:20 +04:00
ayntee 03d6614758 refactor: rename slowmode to rateLimitPerUser (#645) 2021-03-08 19:10:19 +04:00
Skillz4Killz 23708cc39d fix(types/webhook): update interaction response types (#644)
This reverts commit 1b29c92aac.
2021-03-08 18:55:31 +04:00
Skillz4Killz 3a249d91d4 Revert "Revert "fix(handlers/webhook): return Message object instead of raw payload (#611)" (#634)" (#643)
This reverts commit a515765abf.
2021-03-08 18:52:59 +04:00
ITOH 42c743421b refactor(handlers/guild): rename guild widget functions (#386)
* Update guild.ts

* Update guild.ts

* this should be named getWidgetSettings

* update mod imports
2021-03-08 18:51:12 +04:00
ITOH ebc48156aa feat(handlers/guild): change createGuildChannel() to use guild ID (#528)
* guild > guildID

* fix(test): createGuildChannel test

* Update test/mod.test.ts

* Update test/mod.test.ts

* fmt

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-08 18:23:04 +04:00
Pawan Akhil 9715ab4274 Fixed field name in GuildTemplate Interface (#505)
Replaced "user" field name with "creator".

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-08 18:21:17 +04:00
ayntee 544c3c3af2 feat(types/interactions): remove "default" from ApplicationCommandOption interface (#598) 2021-03-08 18:13:55 +04:00
ayntee 95ac54cee9 fix(handlers/member): change editMember() to return a Member object (#578) 2021-03-08 18:13:27 +04:00
ayntee fdab0d93ba feat: change Guild.emojis to use collection (#388)
* feat(guild): change Guild.emojis to use collection

* idk
2021-03-08 18:13:01 +04:00
ayntee bd14075c8a fix(types/channel): change FileContent.blob type to Blob (#509)
* fix(types/channel): change FileContent.blob type to Blob

* idk

* change to blob

* idk
2021-03-08 18:12:35 +04:00
ITOH 100f7ff965 fix(handlers/channel): add permission handler for startTyping() (#626)
* add perm check

* Update src/api/handlers/channel.ts

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2021-03-08 17:46:23 +04:00
ITOH ed85685d35 add type (#619) 2021-03-08 17:43:30 +04:00
Skillz4Killz 5be674e3e8 feat(types/message): add fail_if_not_exists to Reference interface (#642)
* support fail replies

* fmt

* fix linter issue

* fix condition
2021-03-08 17:41:31 +04:00
Skillz4Killz 53bd6c2386 feat(types/member): add permissions in MemberCreatePayload (#641)
* add permission

* update interaction type
2021-03-08 17:37:18 +04:00
ayntee a515765abf Revert "fix(handlers/webhook): return Message object instead of raw payload (#611)" (#634)
This reverts commit 9c7340f624.
2021-03-08 15:42:51 +04:00
ayntee 1b29c92aac Revert "fix(types/webhook): update interaction response types (#610)" (#635)
This reverts commit b511a0d39f.
2021-03-08 15:42:42 +04:00
ayntee 537d508cfa feat(types/guild): add computePruneCount to PruneOptions (#605)
* fix(handlers/guild): rewrite and rename pruneMembers()

* remove breaking change

* Update src/api/handlers/guild.ts

* Update src/types/guild.ts

* Update src/types/guild.ts

* Update src/types/guild.ts

* Update src/api/handlers/guild.ts

* Update src/api/handlers/guild.ts

* Update src/api/handlers/guild.ts

* Update src/types/guild.ts

* Update src/types/guild.ts

* Update src/types/guild.ts

* Update src/api/handlers/guild.ts

* Update src/api/handlers/guild.ts

* Update src/api/handlers/guild.ts

* fmt

* fixes

* Update src/types/guild.ts

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>

* fmt

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2021-03-07 21:30:33 +04:00
ITOH e21a86d497 fix(handlers/webhook): handle slash commands limitations (#618)
* add more errors

* add the validation functions

* spread
2021-03-07 20:28:23 +04:00
ITOH bbe3c636f1 feat(types/interaction): add "resolved" field to DiscordInteractionCommand (#603)
* fix(types): DiscordMember not extending DiscordBaseMember

* add(types): DiscordInteractionDataResolved

* add(types): resolved field to DiscordInteractionData

* fix(types): DiscordInteractionData options is optional

* Apply suggestions from code review

Co-authored-by: ayntee <ayyantee@gmail.com>

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-07 19:32:15 +04:00
ITOH b511a0d39f fix(types/webhook): update interaction response types (#610)
* add the changes from dc

* Update src/types/webhook.ts

* Update src/interactions/types/interactions.ts

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-07 19:21:58 +04:00
ITOH 289a1ec20f Merge pull request #617 from itohatweb/fix-upsert-slash-typings
fix(handlers/webhook): update slash commands handlers' types
2021-03-07 16:03:56 +01:00
ayntee b0ebd5627d Update src/types/webhook.ts 2021-03-07 19:02:30 +04:00
ITOH dce5f6f90e update jsdoc 2021-03-07 16:02:10 +01:00
ITOH 4e00c31545 add extends 2021-03-07 16:00:50 +01:00
ITOH 68bb2bc7a3 Merge remote-tracking branch 'upstream/main' into fix-upsert-slash-typings 2021-03-07 15:52:37 +01:00
ITOH 25858b3144 feat(util): add camelToSnakeCase() & snakeToCamelCase() (#615)
* feat(util): add to camel/snake case functions

* add tests

* hmm

* add lint ignore comment

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-07 18:51:59 +04:00
ITOH 2865f42f72 feat(types/embed): add proxy_url to EmbedVideo interface (#616)
Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-07 18:51:48 +04:00
ayntee 4af6f363f8 feat(handlers/webhook): test slash command name against ^[\w-]{1,32}$ (#613)
* feat(handlers/webhook): test slash command name against ^[\w-]{1,32}$

* Update src/api/handlers/webhook.ts

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

* Update src/api/handlers/webhook.ts

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

* Update src/api/handlers/webhook.ts

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

* Update src/api/handlers/webhook.ts

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

* move to constants file

* idk

* idk

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
2021-03-07 18:48:12 +04:00
ITOH b095b995ec fix upsertSlashCommand & upsertSlashCommands 2021-03-07 15:46:08 +01:00
ITOH 30470d8551 update types 2021-03-07 15:45:53 +01:00
Skillz4Killz 9c7340f624 fix(handlers/webhook): return Message object instead of raw payload (#611)
* fix: change any to message types

* Update webhook.ts

* Update src/api/handlers/webhook.ts

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

Co-authored-by: ayntee <ayyantee@gmail.com>
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
2021-03-07 18:39:19 +04:00
ITOH c319ca66cd feat(handlers/message): add options to getReactions (#607) 2021-03-07 11:55:18 +04:00
Skillz4Killz d084c3f3c4 fix(handlers/channel): handle max_age and max_uses limit in createInvite() (#597)
* fix: handle invalid invite create limits

* refactor: cleanup conditonals

* chore: clarification

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-06 23:44:31 +04:00
Skillz4Killz e5bf5cd47c feat(handlers/webhook): support ephemeral messages (#602)
Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-06 22:59:45 +04:00
ayntee 33ff8cd752 feat(types/permission): add USE_SLASH_COMMANDS permission (#595) 2021-03-06 22:19:11 +04:00
ayntee d8f3674779 fix(handlers/webhook): do not add Date.now() to 900000 ms in executeSlashCommand() (#601)
Related #589
2021-03-06 22:17:04 +04:00
ayntee 5802a9d1ca fix(types/interactions): make "content" optional in SlashCommandCallbackData (#599)
* fix(types/interactions): make "content" optional in SlashCommandCallbackData'

Closes #590

* ignore lint
2021-03-06 22:16:02 +04:00
Skillz4Killz 67e6a41e99 feat(types/auditlog): add missing props to DiscordAuditLogChange interface (#600) 2021-03-06 22:06:11 +04:00
ayntee 565b9e1472 docs(structures/member): update description for Member#guildMember() (#565) 2021-03-06 11:48:48 +04:00
ITOH e10b835367 feat(rest/server): support TLS protocol (#562)
* add keys option

* add serveTLS

* Update src/rest/types/server.ts

* Update src/rest/types/server.ts

* rename the keys

* forgot that one

* Update src/rest/types/server.ts

* some renaming

* Update src/rest/types/server.ts

* Update src/rest/server.ts

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-06 11:48:29 +04:00
ayntee 7a52f301b3 fix(util/permissions): move owner check before member cache check (#555) 2021-02-27 23:54:37 +04:00
ITOH 8f8f988e2b fix(structures/channel): empty guildID in Channel struct (#551) 2021-02-26 22:11:02 +04:00
ayntee 7b482aeed1 fix(rest/queue): logical error in response status handling (#549) 2021-02-26 21:18:10 +04:00
ayntee 03ffb63f0f build: update dependencies to latest (#550) 2021-02-26 14:54:07 +04:00
Skillz 2f58804311 Merge branch 'master' of https://github.com/discordeno/discordeno into proxy-ws 2021-02-25 17:12:34 -05:00
Skillz edd04e850b fix secret key 2021-02-25 16:58:56 -05:00
Skillz f38ba603e8 fix authorization 2021-02-25 16:58:46 -05:00
Skillz 94bc5be370 let end user do server 2021-02-25 16:58:10 -05:00
Skillz cdd043778c this is why while sucks 2021-02-25 16:57:52 -05:00