Commit Graph

4994 Commits

Author SHA1 Message Date
Fleny
6bcb529f9a Bug(utils) Fix bucket refill after the first time (#3097)
* bug(bucket) Fix LeakyBucket refill

* Fix formating
2023-08-08 16:37:41 +00:00
Awesome Stickz
0aeadbb275 fix(rest): bug with trying to pass string values in calculateBits() if object is already in Discord format in changeToDiscordFormat() (#3099) 2023-08-05 18:32:10 +00:00
Fleny
e70a1788f5 Bug(gateway) Fix fetch of discord gateway session information (#3098)
* bug(gateway) Remove update createBot options

Add overrides when fetching discord session info

* Use createBot options instead of defaults
2023-08-05 18:31:35 +00:00
Endy
a911519ed0 fix(gateway): update deno detection (#3092) 2023-08-05 18:27:25 +00:00
NeKz
1424e5552b fix(bot): Transform hashes correctly (#3091) 2023-08-05 18:26:16 +00:00
Wifus
9927c5bb3d Update website URL in examples' README.md (#3063)
* Update website URL in examples' README.md

* Update examples/README.md

---------

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2023-08-05 18:25:07 +00:00
Awesome Stickz
3445211091 fix(docs): set ListGuildMembers options.limit default to 1 (#3065) 2023-07-23 21:00:27 +00:00
Yaikava
ec5e800bcd 🐛 - fix: snakelize json when files are used (#3062) 2023-07-23 20:59:59 +00:00
NeKz
fe00a6f3e3 fix(rest): add missing files for editMessage (#3087)
* fix(rest): add missing files for editMessage

* fix(rest): extend attachment test with editMessage

* fix(types):  remove null from files type
2023-07-23 20:56:22 +00:00
8au
d0db3420f7 fix: 'INVITE_DELETE' event now uses 'handleInviteDelete' (previously used 'handleInviteCreate') (#3064)
* fix: Fixed an issue which would cause the 'INVITE_DELETE' event to be passed into 'INVITE_CREATE'.

* chore: updated guild counts for appy and ai image generator

* chore: removed duplicate line in the message transformer
2023-07-23 15:54:34 -05:00
dependabot[bot]
b2091adaf2 build(deps): bump semver from 6.3.0 to 6.3.1 (#3067)
Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-23 20:52:06 +00:00
dependabot[bot]
8523b6ee91 build(deps): bump semver from 5.7.1 to 5.7.2 in /website (#3068)
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-23 20:51:53 +00:00
dependabot[bot]
a244070548 build(deps): bump semver from 6.3.0 to 6.3.1 in /proxies/rest (#3069)
Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-23 20:51:41 +00:00
dependabot[bot]
11180a538c build(deps): bump word-wrap from 1.2.3 to 1.2.4 (#3088)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-23 20:47:23 +00:00
dependabot[bot]
8c73447da2 build(deps): bump word-wrap from 1.2.3 to 1.2.4 in /website (#3089)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-23 20:46:49 +00:00
Jonathan Ho
8d1ba2a1cc test(rest): fix test for new user system (#3057)
* test(rest): fix test for new user system

* Update user.spec.ts
2023-06-18 22:20:31 +00:00
Jovan Jovanovic
9f0e4d3dd7 fix(types,bot) Fix global name typing (#3053)
* fix(types,bot): fix global_name typing

* fix(types): include global_name in the comment

* fix(utils): add global_name to users
2023-06-17 19:15:57 -05:00
Endy
c12472ea03 fix(gateway): fix deno detection for ws (#3052)
credit: @Yaikava for the improved detection method
2023-06-13 15:40:25 +00:00
Andreas Fink
0d08c57d56 feat(bot): Add guildUnavailable event, fixes #3028 (#3044)
* feat(bot): Add guildUnavailable event, fixes #3028

* Update packages/bot/src/handlers/guilds/GUILD_DELETE.ts

---------

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2023-06-13 15:39:48 +00:00
Awesome Stickz
f9a5fc1afe feat: add support for new username system (#3035)
* feat: add support for new username system

* fix: default avatar calculation in avatarUrl(), also remove support for old system

* fix: use description from docs for user.globalName

* fix: typings

* fix: avatarUrl() to support both old and new username system
2023-06-13 15:39:06 +00:00
Skillz4Killz
c9c510b0cd Merge branch 'main' of https://github.com/discordeno/discordeno 2023-06-06 16:28:56 +00:00
Skillz4Killz
73c9788065 feat(rest): easily enable or disable snake case 2023-06-06 16:28:50 +00:00
Jonathan Ho
abfa0bb8fb test(rest-proxy): add image scan on push to main (#3046) 2023-06-06 01:46:39 +00:00
Jonathan Ho
6ea65c70e3 chore(rest-proxy): update base image (#3045) 2023-06-05 02:37:46 +00:00
Endy
dcc121af46 fix(gateway): Use Deno's WebSocket (#3030)
* fix(gateway): Use Deno's WebSocket

* invert runtime check
2023-06-05 02:27:38 +00:00
Jonathan Ho
169e11771d ci: add snyk for image scan (#3031) 2023-05-11 15:12:20 +00:00
Skillz
c675b450c1 fix: deno ws fix 2023-05-08 14:02:18 -05:00
Skillz
9de1f66bca fix: guild object should accept thread channels Closes #3024 2023-05-08 13:43:42 -05:00
Skillz
a1b2b3fb2c fix: Closes #3011 guide fixes 2023-05-08 13:36:33 -05:00
Skillz
5edfbb7efb fix: localization snake case bug 2023-05-08 13:21:51 -05:00
Endy
c76a173655 Add channel_types prop to channel select menu (#3027)
https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-menu-structure
2023-05-08 16:33:57 +00:00
Awesome Stickz
a3e6551f22 fix(gateway): lastShardId (#3026) 2023-05-08 15:59:23 +00:00
Endy
dfbee47667 Fix BaseInteraction.respond & response validation (#3023) 2023-05-08 15:58:33 +00:00
Endy
2b83d691b3 Toggle Interaction.acknowledged in defer (#3022) 2023-05-06 14:57:43 +00:00
Skillz4Killz
4a6e22d192 fix: benchmark type bug 2023-05-05 23:42:14 +00:00
Skillz4Killz
1d232ac34a fix: interaction.edit type 2023-05-05 23:27:40 +00:00
8au
7081e87959 feat: Added the rewrite Appy review, also changed default color for darkmode to make it easier to see the containers. (#3021) 2023-05-05 23:00:38 +00:00
Endy
37aa4198c2 feat(bot): add more helper functions to BaseInteraction (#3018)
* Add more helper functions for `BaseInteraction`

- Breaking changes for `respond`
  - `response` now takes `InteractionCallbackData`
  - `options` is now `ephemeral: boolean`
- Added `edit`, `defer` and `delete`

* Add comments and `acknowledged` check for `defer`

* Update packages/bot/src/transformers/interaction.ts

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

* Revert `respond` options, rename `ephemeral` to `private`

* Fix typo

* Fix arg name

- Renamed `private` to `isPrivate` to prevent reserved name collision
- Optional chaining for `options`

* Apply suggestions from code review

---------

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2023-05-05 15:52:49 +00:00
Filip Sobol
71eb5c7fbf Rename FormLayout to ForumLayout (#3019) 2023-05-05 15:48:52 +00:00
Yaikava
b1281a3e45 📚 - docs: add deno example with gateway workaround (#3016) 2023-05-01 20:03:57 +00:00
LHCLYT
8389c1dce0 Add CactusFire to Community Feedback (#3017)
* Add CactusFire to Community Feedback

* Update website/src/components/home/reviews/index.tsx

---------

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2023-05-01 19:56:03 +00:00
Gavin Wainwright
26dcee34c3 Update step-4-bot.md (#3015)
typo
2023-04-29 15:35:31 +00:00
Skillz
5c42bdd3ed Merge branch 'main' of https://github.com/discordeno/discordeno into main 2023-04-28 14:14:33 -05:00
Skillz
4dd7ca71c5 fix: interaction.respond typing 2023-04-28 14:14:29 -05:00
Endy
8a0140c8ed fix(website): gradient shadow overlapping navbar (#3012) 2023-04-27 22:44:37 +00:00
livelove1987
be142101e9 fix: Fixed message transformers (#3013) 2023-04-27 22:44:26 +00:00
dependabot[bot]
aa74c6447d build(deps): bump yaml from 2.2.1 to 2.2.2 (#3010)
Bumps [yaml](https://github.com/eemeli/yaml) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](https://github.com/eemeli/yaml/compare/v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: yaml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-27 22:44:15 +00:00
Skillz
e2d86ea644 fix: channel.parentId 2023-04-19 14:33:45 -05:00
Skillz
5172bd91a5 docs: more beginner guides 2023-04-19 14:21:30 -05:00
Skillz
b044211b27 fix: missing helpers 2023-04-19 14:00:42 -05:00