31 Commits
Author SHA1 Message Date
SnazzahandTTtie 487248df32 feat: support components v2 (#194)
Adds types for components V2.

Ref: https://github.com/discord/discord-api-docs/commit/af1843d15bca8fffb76e1421fbb060761361d469
Ref: https://github.com/discord/discord-api-docs/commit/6030e33ad1a1108b482410f8ea34e96e97916e3b

---------

Co-authored-by: TTtie <me@tttie.cz>
2025-04-23 21:46:15 +00:00
TTtie dc3129e2a4 refactor: switch to ESLint flat config, add JSDoc linting (#147)
This commit switches Dysnomia over to ESLint flat config for
futureproofing and better maintainability. For the most part, the
codebase will pass the test suite, apart from a few exceptions
introduced by the stylistic plugin which I believe are reasonable to
include.

Additionally, JSDoc linting was added to maintain proper 
alignment of various features.
2024-08-02 18:56:44 +00:00
LordLucasandTTtie 1758bff6a6 chore(examples/components): fix typo, update component type (#47)
* chore(examples/components): fix typo

* SELECT_MENU -> STRING_SELECT

---------

Co-authored-by: TTtie <me@tttie.cz>
2023-03-10 11:57:15 +00:00
LordLucas 865e773b7d chore(examples/applicationCommands): fix typo (#44) 2023-03-06 16:03:56 +00:00
TTtie 8340a40144 chore: set version to 0.2.0-dev, remove deprecated APIs (#40)
* chore: set package.json version to 0.2.0-dev

* chore: remove deprecated APIs
2023-03-06 14:44:40 +00:00
TTtieandWilsontheWolf 0df1369a82 chore: pre-v0.1.0 housekeeping (#26)
* add pull request CI

* forgot to checkout the repository :(

* do not fail fast on CI

* deprecate the default export function call

* correct invalid jsdoc

* add guildAuditLogEntryCreate event

* Add deprecation notices to examples using deprecated interfaces

* Add missing deprecation comment to esm.mjs

* export ForumChannel on the main module

* Update flags and interfaces related to OAuth application data

This also includes deprecation of undocumented flags

* fix linting

* fix incorrect invite object construction in GuildAuditLogEntry#target

* update audit log-related interfaces to reflect the current API status

* promote AutoModerationRule to a class; update appropriately

* fix(Client): whoops, return AutoModerationRule in editAutoModerationRule

* Add support for Member#flags

ref: https://github.com/discord/discord-api-docs/commit/5a6c4e10858ae736b09d352b67387a096b4adcdb

* Support GuildChannel#permissions

Available only on channels received on the interaction resolve object

* docs: VoiceChannel#topic does not exist

* add GUILD_DIRECTORY into ChannelTypes enum

* Update the Message interface

* Document ability to use flags when creating a message

* Support rateLimitPerUser in createThreadWithMessage

* correctly sort the Message#thread property

* deprecate/get rid of undocumented guild features

server discovery and hub types are undocumented

* correct getGuildPreview return

* update Guild#toJSON after removal of discovery fields

* support GuildPreview#stickers

* Support GuildIntegration#scopes

* support passing systemChannelFlags to createGuild()

* support editing Guild#premiumProgressBarEnabled

* support rtcRegion and videoQualityMode in createChannel()

* sort endpoints appropriately

* Support editing the guild's MFA level

* return the new MFA level directly

* correctly sort GuildScheduledEvent properties in the doc

* Deprecate undocumented scheduled event constants

* Support fetching event data in getInvite()

* Support associated event data with StageInstance

* Update docs related to stage instance privacy levels

* Support sendStartNotification in createStageInstance

* emit deprecation on getInvite(invID, withCounts, withExpiration)

* SticketPack banner_asset_id is optional

* feat(MessageFlags): add `SUPPRESS_NOTIFICATIONS` message flag (#30)

* Add the new `SUPPRESS_NOTIFICATIONS` message flag

This adds the new `SUPPRESS_NOTIFICATIONS`, as mentioned in https://github.com/discord/discord-api-docs/pull/5910/files

* Update TS definitions

---------

Co-authored-by: TTtie <me@tttie.cz>

* support creating new threads in a forum via webhooks

* remove handling of private_channels on READY

it's been an empty array for bots since 2018, not present in the docs anymore

* add old default forum layout to channel updates

* include components and remove mentionedBy from messageUpdate

* emit possibly uncached guilds in guildBan{Add,Remove} events

* use PossiblyUncached* types consistently

* feat(GuildIntegration): add scopes to toJSON()

* document GuildIntegration#guild

* Support guild integration gateway events

* Support text-in-stage

* doc(Client): specify getGuildAuditLog return type

* quote dev branch install command
# is a comment in some shells

---------

Co-authored-by: WilsontheWolf <33164598+WilsontheWolf@users.noreply.github.com>
2023-02-16 21:07:46 +00:00
Sham 5c7bde8547 chore(examples/intent): fix import typo (#6) 2022-10-21 15:49:09 +00:00
TTtie 75d58b787e chore: remove deprecated/dead code (#3) 2022-10-14 14:49:37 +00:00
TTtie 25d753d1c2 chore: rebrand to Project Dysnomia 2022-10-09 20:34:42 +00:00
Donovan Daniels 61b9502d18 refactor(interactions): Interactions Refactor (PR 1309) 2022-09-16 13:51:52 +00:00
HcgRandon 36e7a763c7 feat(ShardManager): concurrency support (#1370) 2022-06-02 14:44:41 -05:00
+1 a9c4934bab Support Interactions (#1280)
Co-Authored-By: Donovan Daniels <hewwo@yiff.rocks>
Co-Authored-By: Reinhardt <notmarx.tech@gmail.com>
Co-authored-by: DetachHead <57028336+DetachHead@users.noreply.github.com>
Co-authored-by: Loliticos <47262825+Loliticos@users.noreply.github.com>
Co-Authored-By: Gwee&Kwee <gwee@nekotina.com>
Co-Authored-By: coolcalcacol <31094492+coolcalcacol@users.noreply.github.com>
Co-authored-by: Lava <service.github@lava.moe>
Co-authored-by: Avocado <43632131+Awoocado@users.noreply.github.com>
Co-authored-by: bsian03 <chharry321@gmail.com>
Co-authored-by: abalabahaha <hi+github@abal.moe>
2021-10-31 01:34:51 +00:00
geg 0726aae2e8 Use embeds array in embed example (#1244) 2021-07-13 03:35:08 -07:00
Carlos Lima 5f7769d2b0 Add error handler to examples (#1181) 2021-04-18 14:51:04 -07:00
abalabahaha 04c72751d7 Cleanup metafiles, examples 2021-04-05 06:16:55 +00:00
Tyler Ricketts b8df72b6b8 Support intents (#616) 2020-04-13 11:01:22 -07:00
Alex Taxiera 6148a45e3d Add stricter eslint rules (#549) 2019-10-31 12:17:24 -07:00
abalabahaha 1bf56ce284 Removed welcomer example
This is a relic from the ancient times where a welcome bot was the first thing every bot dev built. Now, Discord has not-so-default default channels, built-in welcome messages, and bot devs that focus on other things (\*sigh\* _music bots_).

RIP annoying spammy welcomer userbots, you will be missed.
2017-10-12 16:46:09 -07:00
Jacob 26de4cf71b Trust me... this is really going to help someone one day... (#250)
Also the red line in my IDE annoyed me.
2017-07-01 20:49:33 -04:00
brendan10211 eecd8d87e1 Add reaction buttons to CommandClient (#212)
* add chain reaction method

* add reaction buttons to command client

* chmod

* docs

* array for responses, also generators

* docs

* remove chainReaction

* use milliseconds

* Fix style, logic, docs (abalabahaha)
2017-03-26 17:28:49 -07:00
TTtie ba49025b91 VoiceState returns a class with id when not in voice channel; use channelID property instead (#187) 2017-02-22 06:02:11 +09:00
Tyler Ricketts 6e0fe47b4f Add an example for rich embeds. (#172)
* Add embed example

* Add comments

* Requested Changes
-Move embed property to new line
2017-01-25 14:08:38 -08:00
abalabahaha 179ecdc226 Cleanup of typos 2016-09-11 03:12:00 +09:00
abalabahaha 7322532d66 Fix HTTP(S) audio resources 2016-08-29 16:02:54 +09:00
abalabahaha d61da35d51 Fix VOICE_STATE_UPDATE handling, docs cleanup 2016-07-30 14:25:36 +09:00
John Grosh ba717009d0 Wrong verb in welcomer example (#37) 2016-07-28 12:13:18 +08:00
abalabahaha 6343300b57 More various fixes
If the person in front of you in 744 economy reclines his/her seat all the way back, your 13" MBP will be left in an awkward barely usable position
2016-07-11 19:22:26 +09:00
abalabahaha a589c1a60e More various fixes
This time it's a high speed train
2016-07-10 22:54:19 +08:00
abalabahaha 21613b47b2 Various untested fixes and additions
This plane ride is boring
The entertainment system keeps lagging
2016-07-03 12:27:57 +09:00
abalabahaha 9f6f915727 Minor fixes 2016-07-03 12:27:39 +09:00
abalabahaha 499812aba1 Initial commit 2016-07-01 08:10:05 +09:00