Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit ea9d670
Author: abalabahaha <hi@abal.moe>
Date:   Tue May 4 16:18:32 2021 +0000

    Notify VoiceConnectionManager about voice state disconnects

commit 5964a87
Author: abalabahaha <hi@abal.moe>
Date:   Tue May 4 16:17:03 2021 +0000

    Bump dev version

commit 69f812c
Author: abalabahaha <hi@abal.moe>
Date:   Tue May 4 16:10:52 2021 +0000

    Fix more docs typos

commit a02293b
Author: abalabahaha <hi@abal.moe>
Date:   Mon May 3 17:59:29 2021 +0000

    0.15.1

commit ec777a1
Author: abalabahaha <hi@abal.moe>
Date:   Sat May 1 21:08:44 2021 +0000

    Move paginated request params to options object

commit ff4bcc0
Author: abalabahaha <hi@abal.moe>
Date:   Sat May 1 19:54:44 2021 +0000

    Unref voice connect timeouts

commit 2f6c71e
Author: bsian03 <chharry321@gmail.com>
Date:   Sat May 1 20:52:22 2021 +0100

    Fix command, activity typings (abalabahaha#1192)

commit 028efe3
Author: bsian03 <chharry321@gmail.com>
Date:   Sat May 1 20:50:51 2021 +0100

    Event docs, typings fixes (abalabahaha#1191)

    Co-authored-by: abalabahaha <hi@abal.moe>

commit 340ffe9
Author: bsian03 <chharry321@gmail.com>
Date:   Thu Apr 29 11:24:16 2021 +0100

    Fix types, docs, lint (abalabahaha#1190)

    Co-authored-by: abal <github@abal.moe>

commit 939b70f
Author: abalabahaha <hi@abal.moe>
Date:   Sun Apr 25 20:07:52 2021 +0000

    Improve voice send memory handling

commit 94e7e18
Author: abalabahaha <hi@abal.moe>
Date:   Sun Apr 25 18:16:42 2021 +0000

    Switch to voice gateway v4

commit 95cffe4
Author: abalabahaha <hi@abal.moe>
Date:   Sun Apr 25 17:08:22 2021 +0000

    Improve VoiceConnection disconnect handling

commit c3d491d
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Apr 25 16:48:37 2021 +0100

    Move to content.messageReference (abalabahaha#1187)

    Co-authored-by: abalabahaha <hi@abal.moe>

commit e2814a2
Author: James58899 <james58899@users.noreply.github.com>
Date:   Sun Apr 25 23:46:49 2021 +0800

    Fix voice server update endpoint handling (abalabahaha#1176)

commit d58b788
Author: abalabahaha <hi@abal.moe>
Date:   Sun Apr 25 15:41:21 2021 +0000

    Improve ratelimit handling

    * Exception for DELETE messages > 2 weeks old
    * Exception for PUT/DELETE reactions
    * Cleanup latency calculations

    Co-authored-by: bsian03 <chharry321@gmail.com>

commit 3e86cd7
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Apr 25 14:49:20 2021 +0100

    Deprecate getMessageReaction() before param (abalabahaha#1180)

commit 824ccf7
Author: abalabahaha <hi@abal.moe>
Date:   Sun Apr 25 13:42:05 2021 +0000

    Expose role tags

    Co-authored-by: bsian03 <chharry321@gmail.com>

commit e06f38a
Author: abalabahaha <hi@abal.moe>
Date:   Sun Apr 25 13:33:53 2021 +0000

    Lint, cleanup docs

commit fba1f7c
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Apr 18 22:53:42 2021 +0100

    Support welcome screen endpoints (abalabahaha#1179)

commit 2a840a0
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Apr 18 22:52:13 2021 +0100

    Support getWebhookMessage() (abalabahaha#1182)

commit 5f7769d
Author: Carlos Lima <xaxim@users.noreply.github.com>
Date:   Sun Apr 18 18:51:04 2021 -0300

    Add error handler to examples (abalabahaha#1181)

commit 8d3120e
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Apr 18 22:49:26 2021 +0100

    Remove Sticker preview_asset typings (abalabahaha#1183)

commit 90b0bb4
Author: Snazzah <7025343+Snazzah@users.noreply.github.com>
Date:   Sun Apr 18 16:48:22 2021 -0500

    Doc Message#interaction.name (abalabahaha#1186)

commit 608524d
Author: Zeref <contact@zeref.dev>
Date:   Sun Apr 18 23:47:50 2021 +0200

    Fix Permission constructor typings (abalabahaha#1184)

    Co-authored-by: Donovan Daniels <hewwo@yiff.rocks>

commit c222bc5
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Apr 18 22:46:27 2021 +0100

    Undocument Client#token (abalabahaha#1185)

commit b3c1b38
Author: abalabahaha <hi@abal.moe>
Date:   Wed Apr 14 23:09:20 2021 +0000

    Fix JSDoc comment

    Broken by b6d51ee (abalabahaha#1155)

commit b6d51ee
Author: bsian03 <chharry321@gmail.com>
Date:   Thu Apr 15 00:04:28 2021 +0100

    Add REST methods for stage channels (abalabahaha#1155)

commit 9223266
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Apr 14 23:56:07 2021 +0100

    Expose Guild#nsfw (abalabahaha#1177)

commit fcd608d
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Apr 14 23:52:16 2021 +0100

    Tidy up typings (abalabahaha#1170)

commit ed23407
Author: Donovan Daniels <dwddaniels262@gmail.com>
Date:   Wed Apr 14 17:33:01 2021 -0500

    Fix Overwrite allow/deny types (abalabahaha#1175)

commit 2dff361
Author: Erin <erin20913@gmail.com>
Date:   Wed Apr 14 18:16:01 2021 -0400

    Fix OAuthTeamInfo#members typings (abalabahaha#1171)

commit 0a3490f
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Apr 14 23:14:04 2021 +0100

    Fix getGuildIntegrations options typo (abalabahaha#1169)

commit 5837a31
Author: Snazzah <7025343+Snazzah@users.noreply.github.com>
Date:   Wed Apr 14 17:13:13 2021 -0500

    Add Message#interaction (abalabahaha#1167)

commit c152aac
Author: HeadTriXz <32986761+HeadTriXz@users.noreply.github.com>
Date:   Wed Apr 14 20:30:53 2021 +0200

    Add editGuildVanity() (abalabahaha#1166)

commit e71c2ba
Author: abalabahaha <hi@abal.moe>
Date:   Mon Apr 5 06:21:28 2021 +0000

    Bump dev version

commit 04c7275
Author: abalabahaha <hi@abal.moe>
Date:   Mon Apr 5 06:16:55 2021 +0000

    Cleanup metafiles, examples

commit 07efa33
Author: abalabahaha <hi@abal.moe>
Date:   Mon Apr 5 06:11:08 2021 +0000

    Update LICENSE year

commit 2d10b72
Author: untuned <untuned@teamhydra.dev>
Date:   Mon Apr 5 01:58:27 2021 -0400

    Fix Node.js version in README (abalabahaha#1168)

commit e7f12bf
Author: abalabahaha <hi@abal.moe>
Date:   Mon Apr 5 05:01:03 2021 +0000

    0.15.0

commit 0310bfc
Author: abalabahaha <hi@abal.moe>
Date:   Sun Apr 4 08:14:26 2021 +0000

    Revert "Support User#premiumType (abalabahaha#1149)"

    This reverts commit 3990957.

commit ff8d901
Author: abalabahaha <hi@abal.moe>
Date:   Sun Apr 4 02:48:48 2021 +0000

    Lint, add recent props to toJSON()

commit 39dd05f
Author: abalabahaha <hi@abal.moe>
Date:   Sun Apr 4 02:48:32 2021 +0000

    Allow number type for permissions over REST

commit d7c69f2
Author: abalabahaha <hi@abal.moe>
Date:   Sat Apr 3 19:13:05 2021 +0000

    Use BigInt for permissions over REST

commit fd2ee5f
Author: abalabahaha <hi@abal.moe>
Date:   Sat Apr 3 18:50:38 2021 +0000

    Fix BigInt types

    Co-authored-by: Donovan Daniels <dwddaniels262@gmail.com>

commit a2d925a
Author: bsian03 <chharry321@gmail.com>
Date:   Sat Apr 3 18:37:11 2021 +0100

    Expose attachment content type in typings (abalabahaha#1165)

commit 4bce200
Author: TornadoMC <42751295+TornadoMC2@users.noreply.github.com>
Date:   Sat Apr 3 12:36:21 2021 -0500

    Allow Command *Messages to return content objects (abalabahaha#1130)

    Co-authored-by: abalabahaha <hi@abal.moe>
    Co-authored-by: bsian03 <chharry321@gmail.com>

commit 86ea307
Author: abalabahaha <hi@abal.moe>
Date:   Sat Apr 3 17:05:36 2021 +0000

    Exclude channel from Message#toJSON()

commit f092b89
Author: bsian03 <chharry321@gmail.com>
Date:   Sat Apr 3 17:51:38 2021 +0100

    Support BigInt in toJSON() (abalabahaha#1164)

commit 4bae89a
Author: David Amorim <66310990+davidffa@users.noreply.github.com>
Date:   Sat Apr 3 17:36:11 2021 +0100

    Fix sodium-native decoding (abalabahaha#1162)

commit b459a94
Author: abalabahaha <hi@abal.moe>
Date:   Sat Apr 3 16:19:55 2021 +0000

    Drop uws support

commit ab38c3f
Author: abalabahaha <hi@abal.moe>
Date:   Sat Apr 3 16:17:20 2021 +0000

    Support voiceRequestToSpeak permission

commit 88ae937
Author: abalabahaha <hi@abal.moe>
Date:   Sat Apr 3 15:57:26 2021 +0000

    Refactor createOpus()

commit 44f20b5
Author: abalabahaha <hi@abal.moe>
Date:   Sat Apr 3 15:49:59 2021 +0000

    Delay Opus import until needed

    Should help with resource usage a bit

commit 6362bb7
Author: abalabahaha <hi@abal.moe>
Date:   Sat Apr 3 15:47:56 2021 +0000

    Add Shard reconnect debug messages

commit 0d68bf4
Author: abalabahaha <hi@abal.moe>
Date:   Sat Apr 3 15:27:37 2021 +0000

    Rename some permissions

commit 906690c
Author: abalabahaha <hi@abal.moe>
Date:   Sat Apr 3 15:26:40 2021 +0000

    Support useSlashCommands permission

commit 9d3958f
Author: abalabahaha <hi@abal.moe>
Date:   Sat Apr 3 15:25:44 2021 +0000

    Fix permission pseudo-groups

commit de317ca
Author: abalabahaha <hi@abal.moe>
Date:   Sat Apr 3 15:09:45 2021 +0000

    Fix Permission#toString()

commit 3649cd7
Author: abalabahaha <hi@abal.moe>
Date:   Sat Apr 3 14:53:34 2021 +0000

    Migrate permissions to BigInt

commit 886cb30
Author: abalabahaha <hi@abal.moe>
Date:   Sat Apr 3 12:41:50 2021 +0000

    Fix Client, RequestHandler typings

commit 32b54c8
Author: bsian03 <chharry321@gmail.com>
Date:   Sat Apr 3 12:27:12 2021 +0100

    Add support for editing files in webhook messages (abalabahaha#1163)

commit 54fc78d
Author: bsian03 <chharry321@gmail.com>
Date:   Fri Apr 2 12:06:51 2021 +0100

    Fix Guild#systemChannelFlags typings (abalabahaha#1156)

commit 8087450
Author: bsian03 <chharry321@gmail.com>
Date:   Fri Apr 2 11:55:29 2021 +0100

    More StageChannel coverage (abalabahaha#1154)

commit 9da9d05
Author: bsian03 <chharry321@gmail.com>
Date:   Fri Apr 2 08:58:07 2021 +0100

    Expose video quality mode (abalabahaha#1157)

    Co-authored-by: abalabahaha <hi@abal.moe>

commit d86ade2
Author: bsian03 <chharry321@gmail.com>
Date:   Fri Apr 2 08:42:47 2021 +0100

    Expose Message type 22 (abalabahaha#1160)

commit f994117
Author: bsian03 <chharry321@gmail.com>
Date:   Fri Apr 2 08:41:36 2021 +0100

    Expose voice channel RTC region (abalabahaha#1161)

commit 9ec347a
Author: bsian03 <chharry321@gmail.com>
Date:   Fri Apr 2 08:37:44 2021 +0100

    Check for content in Message#channelMentions (abalabahaha#1159)

commit 7b08976
Author: abalabahaha <hi@abal.moe>
Date:   Fri Apr 2 07:30:29 2021 +0000

    Adjust handling of unknown voice channel types

commit 16c6a76
Author: abalabahaha <hi@abal.moe>
Date:   Thu Apr 1 04:03:02 2021 +0000

    Emit partial guildEmojisUpdate

commit 6771b3f
Author: abalabahaha <hi@abal.moe>
Date:   Thu Apr 1 03:42:14 2021 +0000

    Properly encode audit log/ban reasons

commit 692febf
Author: abalabahaha <hi@abal.moe>
Date:   Thu Apr 1 01:44:55 2021 +0000

    Re-add Client requestTimeout default

commit 99f4163
Author: abalabahaha <hi@abal.moe>
Date:   Thu Apr 1 01:27:20 2021 +0000

    Privatize Client#_token

    Co-authored-by: Khaazz <khaaz.dev@gmail.com>

commit 7a5ec43
Author: abalabahaha <hi@abal.moe>
Date:   Wed Mar 31 22:28:20 2021 +0000

    Fix Client options handling, docs

    Co-authored-by: iiFDCT <conor.turner11@gmail.com>

commit 3750145
Author: abalabahaha <hi@abal.moe>
Date:   Wed Mar 31 22:27:10 2021 +0000

    Add StageChannel topic

commit 5ae9f52
Author: abalabahaha <hi@abal.moe>
Date:   Wed Mar 31 20:58:37 2021 +0000

    Support basic functionality for stage channels

commit 739bca0
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Mar 31 21:28:58 2021 +0100

    Clarify banGuildMember() deleteMessages limits (abalabahaha#1151)

commit 8acd468
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Mar 31 21:27:54 2021 +0100

    Improve handling of messages in uncached channels (abalabahaha#1152)

commit e79348d
Author: abalabahaha <hi@abal.moe>
Date:   Sat Mar 27 03:25:57 2021 -0700

    Re-enable sorting of custom inspect functions

    Now supported by `eslint-plugin-sort-class-members`!

commit 2095d3e
Author: abalabahaha <hi@abal.moe>
Date:   Thu Mar 25 17:54:50 2021 -0700

    Reorganize, add REST options

commit 6083e09
Author: abalabahaha <hi@abal.moe>
Date:   Thu Mar 25 17:27:30 2021 -0700

    Catch errors when creating REST request

commit 3990957
Author: HeadTriXz <32986761+HeadTriXz@users.noreply.github.com>
Date:   Thu Mar 25 23:31:44 2021 +0100

    Support User#premiumType (abalabahaha#1149)

    Co-authored-by: bsian03 <chharry321@gmail.com>

commit c8ab1bb
Author: Sergey <serg.xomi4@gmail.com>
Date:   Fri Mar 26 01:17:23 2021 +0300

    Fix Guild#welcomeScreen handling (abalabahaha#1150)

commit daa0c8a
Author: wh0 <wh0@users.noreply.github.com>
Date:   Wed Mar 24 17:51:26 2021 -0700

    Check before using array in READY handler (abalabahaha#1025)

commit c149e73
Author: Khaaz <khaaz.dev@gmail.com>
Date:   Thu Mar 25 01:42:57 2021 +0100

    Expose new props in GuildIntegration (abalabahaha#1031)

commit 9d7e05e
Author: Khaaz <khaaz.dev@gmail.com>
Date:   Thu Mar 25 01:22:09 2021 +0100

    Support discoverySplash, features in editGuild() (abalabahaha#1033)

    Co-authored-by: bsian03 <chharry321@gmail.com>
    Co-authored-by: abalabahaha <hi@abal.moe>

commit fc038fa
Author: Khaaz <khaaz.dev@gmail.com>
Date:   Thu Mar 25 01:12:17 2021 +0100

    Support new options for editChannelPosition() (abalabahaha#1034)

commit cb7178d
Author: abalabahaha <hi@abal.moe>
Date:   Wed Mar 24 17:01:41 2021 -0700

    Add missing props to Guild#toJSON()

commit 2974f72
Author: Khaaz <khaaz.dev@gmail.com>
Date:   Thu Mar 25 00:58:15 2021 +0100

    Fix toJSON() consistency (abalabahaha#1032)

commit f2af4ac
Author: Khaazz <khaaz.dev@gmail.com>
Date:   Wed Mar 24 16:40:46 2021 -0700

    Update references to community Guilds

commit 011548e
Author: Khaaz <khaaz.dev@gmail.com>
Date:   Thu Mar 25 00:31:28 2021 +0100

    Expose selfVideo in VoiceState (abalabahaha#1035)

    Co-authored-by: bsian03 <chharry321@gmail.com>
    Co-authored-by: abalabahaha <hi@abal.moe>

commit 2a787f8
Author: Khaaz <khaaz.dev@gmail.com>
Date:   Thu Mar 25 00:27:01 2021 +0100

    Update docs for executeWebhook() auth (abalabahaha#1036)

commit 9a89483
Author: Khaaz <khaaz.dev@gmail.com>
Date:   Thu Mar 25 00:25:37 2021 +0100

    Expose welcomeScreen on Invite (abalabahaha#1037)

commit ccc084e
Author: Apacheli <43933794+Apacheli@users.noreply.github.com>
Date:   Wed Mar 24 16:18:43 2021 -0700

    Add more CDN endpoints, fix Constants formatting

    Co-authored-by: abalabahaha <hi@abal.moe>

commit 64cf536
Author: flammableassassin <43076116+flamableassassin@users.noreply.github.com>
Date:   Wed Mar 24 23:17:15 2021 +0000

    Support interaction messages (abalabahaha#1148)

commit aec3f82
Author: abalabahaha <hi@abal.moe>
Date:   Wed Mar 24 16:00:57 2021 -0700

    Bump deps, lint

commit d9e12a7
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Mar 24 22:33:34 2021 +0000

    Fix Message Webhook types (abalabahaha#1147)

commit c81b689
Author: Khaaz <khaaz.dev@gmail.com>
Date:   Wed Mar 24 23:12:20 2021 +0100

    Reduce channel cache reliance in Message events (abalabahaha#1045)

commit 9cd3a5d
Author: abalabahaha <hi@abal.moe>
Date:   Wed Mar 24 21:49:34 2021 +0000

    Support stickers (receive-only)

    Co-authored-by: Dragory <2606411+Dragory@users.noreply.github.com>
    Co-authored-by: Gleb Koval <glebkoval4@gmail.com>

commit c82c6a0
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Mar 24 21:37:08 2021 +0000

    Fix CommandClient reaction handling (abalabahaha#1101)

commit 936af87
Author: Gleb <38599423+Gleb-ko@users.noreply.github.com>
Date:   Wed Mar 24 21:20:00 2021 +0000

    Added flags to oldMessage (abalabahaha#1115)

    Co-authored-by: bsian03 <chharry321@gmail.com>

commit 81e09cc
Author: Donovan Daniels <dwddaniels262@gmail.com>
Date:   Wed Mar 24 16:10:08 2021 -0500

    Fix return in Message#crosspost typings (abalabahaha#1114)

commit 148a578
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Mar 24 20:33:22 2021 +0000

    Fix removeMessageReaction deprecations (abalabahaha#1094)

commit 1381bba
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Mar 24 19:32:06 2021 +0000

    Update member cache on messageReactionAdd (abalabahaha#1098)

commit fb440b2
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Mar 24 19:31:02 2021 +0000

    More async support in Command *Message functions (abalabahaha#1132)

commit 2f0c5d5
Author: Ollie Jones <35707991+oathompsonjones@users.noreply.github.com>
Date:   Wed Mar 24 19:29:29 2021 +0000

    More accurate typings (Message class and Emoji interface) (abalabahaha#1127)

    Co-authored-by: Donovan Daniels <dwddaniels262@gmail.com>

commit af877e7
Author: Thewsomeguy <Thewsomeguy@users.noreply.github.com>
Date:   Wed Mar 24 14:20:48 2021 -0500

    Add Member#pending (abalabahaha#1116)

commit ea4d079
Author: Gleb <38599423+Gleb-ko@users.noreply.github.com>
Date:   Wed Mar 24 19:19:12 2021 +0000

    Added typings for attachment image dimensions (abalabahaha#1112)

commit 0dbc496
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Mar 24 19:07:35 2021 +0000

    Show non-deprecated overloads first (abalabahaha#1111)

commit d41dddf
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Mar 24 17:12:17 2021 +0000

    Store application info on ready (abalabahaha#1103)

commit 7d029d0
Author: Donovan Daniels <dwddaniels262@gmail.com>
Date:   Wed Mar 24 11:49:30 2021 -0500

    Remove legacy name-based GuildChannel#nsfw check (abalabahaha#1110)

commit 19c1eb4
Author: spiral <alias-lx8ewsa@ariel.network>
Date:   Wed Mar 24 16:39:02 2021 +0000

    Fix typo in RequestHandler rawREST docs (abalabahaha#1046)

commit 4195ab8
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Mar 24 16:36:56 2021 +0000

    Support editing/deleting webhook messages (abalabahaha#1060)

commit 5670b27
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Mar 24 16:33:38 2021 +0000

    Fix some toJSON() Guild props (abalabahaha#1104)

commit 5e9c989
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Mar 24 16:32:38 2021 +0000

    Use this for self-references in typings (abalabahaha#1106)

commit 9e17bc3
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Mar 24 16:31:14 2021 +0000

    Fix some typings mistakes (abalabahaha#1097)

commit 75c2c49
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Mar 24 16:30:21 2021 +0000

    Fix selfMute/selfDeaf notes in updateVoiceState() (abalabahaha#1105)

commit 35275f0
Author: Miyaco <z@zeppel.biz>
Date:   Thu Mar 25 01:28:41 2021 +0900

    Fixed AllowedMentions#repliedUser typings (abalabahaha#1099)

commit 2171ffb
Author: bsian03 <chharry321@gmail.com>
Date:   Wed Mar 24 16:27:44 2021 +0000

    Correct documentation for subcommandAliases (abalabahaha#1107)

commit 2fd804e
Author: Gleb <38599423+Gleb-ko@users.noreply.github.com>
Date:   Wed Mar 24 16:24:02 2021 +0000

    Add available property to Emoji (abalabahaha#1096)

commit 93c36cf
Author: Deda <boyan.dedic@gmail.com>
Date:   Wed Mar 24 17:21:46 2021 +0100

    More specific type on Permission#json & has (abalabahaha#1090)

commit db7da38
Author: evan <evan@tsu.sh>
Date:   Sat Mar 6 07:15:50 2021 -0500

    improve memory handling in voice/file uploads (abalabahaha#1121)

commit 3f602d1
Author: Snazzah <7025343+Snazzah@users.noreply.github.com>
Date:   Sat Mar 6 06:13:02 2021 -0600

    Add competing status to docs/types (abalabahaha#1126)

commit 02e989c
Author: bsian03 <chharry321@gmail.com>
Date:   Sat Mar 6 12:11:37 2021 +0000

    Add missing GuildAuditLog properties (abalabahaha#1136)

    Co-authored-by: Snazzah <7025343+Snazzah@users.noreply.github.com>

commit 9830082
Author: abalabahaha <hi@abal.moe>
Date:   Mon Feb 1 06:05:28 2021 -0800

    Swap native Opus library

    Bye `node-opus`, it's been a good run

commit 958103d
Author: bsian03 <chharry321@gmail.com>
Date:   Sat Jan 30 07:19:36 2021 +0000

    Re-fix typo from abalabahaha#972 (abalabahaha#1093)

commit 3c40871
Author: Ollie Jones <35707991+oathompsonjones@users.noreply.github.com>
Date:   Sun Jan 10 20:54:22 2021 +0000

    Fix some voice typings (abalabahaha#1122)

commit c77b3af
Author: DetachHead <57028336+DetachHead@users.noreply.github.com>
Date:   Sun Jan 10 07:21:45 2021 +1000

    Fix handling replies in DM Channels (abalabahaha#1120)

commit c936232
Author: Jake <jakeincanada@icloud.com>
Date:   Sat Jan 9 16:17:58 2021 -0500

    Fix Guild#editWidget() (abalabahaha#1117)

commit fdf9ea8
Author: abalabahaha <hi@abal.moe>
Date:   Sun Nov 29 16:07:19 2020 -0800

    Lint

commit ed8f2ef
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Nov 29 14:51:50 2020 +0000

    Support Discovery (abalabahaha#1015)

commit 27b9704
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Nov 29 14:46:22 2020 +0000

    Add new info to GuildAuditLogEntry (abalabahaha#1077)

commit e9e01cb
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Nov 29 14:35:39 2020 +0000

    Redo Invite to allow non-strict compilation (abalabahaha#1054)

commit 8ab1ab7
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Nov 29 14:15:29 2020 +0000

    Add userID filter to audit logs (abalabahaha#1087)

commit 1281781
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Nov 29 14:10:33 2020 +0000

    Add custom inspect to more classes (abalabahaha#1083)

commit b910d1d
Author: Gleb <38599423+Gleb-ko@users.noreply.github.com>
Date:   Sun Nov 29 14:06:00 2020 +0000

    Add/document missing Guild properties (abalabahaha#1081)

commit 82441d8
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Nov 29 13:59:32 2020 +0000

    Fix JSDoc consistency (abalabahaha#1080)

commit 8e32b98
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Nov 29 13:59:20 2020 +0000

    Support Guild Templates (abalabahaha#1078)

commit 19eb558
Author: Chris Hernandez <august@augu.dev>
Date:   Sun Nov 29 06:54:37 2020 -0700

    Filter undefined message content in debug event (abalabahaha#1076)

commit 5936086
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Nov 29 13:49:04 2020 +0000

    Support inline replies (abalabahaha#1069)

commit 984ffbb
Author: jtsshieh <27078349+jtsshieh@users.noreply.github.com>
Date:   Sun Nov 29 17:43:02 2020 +0400

    Support system channel flags (abalabahaha#1067)

commit 592313d
Author: Miikka <2606411+Dragory@users.noreply.github.com>
Date:   Sun Nov 29 15:40:50 2020 +0200

    Fix types for Message.reactions (abalabahaha#1068)

commit aca342e
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Nov 29 13:34:54 2020 +0000

    Use ts-ignore over ts-expect-error (abalabahaha#1066)

commit 98c261d
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Nov 29 13:24:15 2020 +0000

    Add member to typingStart event (abalabahaha#1059)

commit b5a33f2
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Nov 29 13:14:16 2020 +0000

    Mark avatar as optional for createWebhook() (abalabahaha#1055)

commit 18229fe
Author: jtsshieh <27078349+jtsshieh@users.noreply.github.com>
Date:   Sun Nov 29 17:13:03 2020 +0400

    Remove Constants indexers in typings (abalabahaha#1057)

commit 6c6abb6
Author: Snazzah <7025343+Snazzah@users.noreply.github.com>
Date:   Sun Nov 29 07:12:02 2020 -0600

    Fix requestGuildMembers guard checks (abalabahaha#1052)

commit fb06856
Author: spiral <alias-lx8ewsa@ariel.network>
Date:   Sun Nov 29 13:32:11 2020 +0100

    Fix administrator permission check (abalabahaha#1028)

    Fixed a bug where giving the @everyone role administrator doesn't override permissions

commit 124c97e
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Nov 29 12:07:30 2020 +0000

    Use _new permission fields (abalabahaha#1016)

commit 03e9697
Author: Pr0metheus42 <kristofferomdal@gmail.com>
Date:   Sun Nov 29 13:02:57 2020 +0100

    Clean animated emotes in Message#cleanContent (abalabahaha#1024)

commit e789deb
Author: Thewsomeguy <Thewsomeguy@users.noreply.github.com>
Date:   Sun Nov 29 06:01:01 2020 -0600

    Expose latency in rawREST event (abalabahaha#1017)

    Co-authored-by: bsian03 <chharry321@gmail.com>

commit ad00c9b
Author: bsian03 <chharry321@gmail.com>
Date:   Sun Nov 29 11:53:12 2020 +0000

    Correct reason property removal (abalabahaha#1005)

commit 4046281
Author: Ibrahim Ansari <retrixe@users.noreply.github.com>
Date:   Sun Nov 8 04:45:07 2020 +0530

    Fix editing messages authored by others (abalabahaha#1007)
  • Loading branch information
conorwastakenwastaken committed Jun 16, 2021
1 parent 72859c9 commit 7fd8104
Show file tree
Hide file tree
Showing 56 changed files with 2,775 additions and 1,048 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.ts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ rules:
- "[alphabetical-methods]"
- 'on'
- "[everything-else]"
- "[custom-inspect-method]"
- toString
- toJSON
groups:
Expand All @@ -63,3 +64,6 @@ rules:
- type: property
sort: alphabetical
static: false
custom-inspect-method:
- name: "[util.inspect.custom]"
type: method
7 changes: 6 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ plugins:
- "sort-class-members"
extends: "eslint:recommended"
globals:
BigInt: true
window: true
parserOptions:
ecmaVersion: 2018
ecmaVersion: 2020
rules:
array-bracket-spacing:
- 2
Expand Down Expand Up @@ -70,6 +71,7 @@ rules:
- "[alphabetical-methods]"
- "[alphabetical-conventional-private-methods]"
- "[everything-else]"
- "[custom-inspect-method]"
- toString
- toJSON
groups:
Expand All @@ -83,4 +85,7 @@ rules:
- name: "/_.+/"
type: method
sort: alphabetical
custom-inspect-method:
- name: "[util.inspect.custom]"
type: method

9 changes: 5 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Contributing

Thanks for considering contributing!

A few rules of thumb:
* Code contributions should match the existing code style. `npm run eslint` could help you check (requires installing ESLint)
* Check with me before adding/deleting functionality (you can contact me (abalabahaha#9421) [on Discord](https://discord.gg/n2g6BQP))
* Check the dev branch to make sure someone hasn't worked on the same thing already
* Pull requests should point to the dev branch, not master
- Code contributions should match the existing code style. `npm run lint:js` and `npm run lint:ts` could help you check
- Discuss additions/changes with us [on Discord](https://abal.moe/Eris/invite) before working on them
- Check the dev branch to make sure someone hasn't worked on the same thing already
- Pull requests should point to the dev branch, not master
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016-2020 abalabahaha
Copyright (c) 2016-2021 abalabahaha

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,36 @@
Eris [![NPM version](https://img.shields.io/npm/v/eris.svg?style=flat-square)](https://npmjs.com/package/eris)
Eris [![NPM version](https://img.shields.io/npm/v/eris.svg?style=flat-square&color=informational)](https://npmjs.com/package/eris)
====

A NodeJS wrapper for interfacing with Discord.
A Node.js wrapper for interfacing with Discord.

Installing
----------

You will need NodeJS 8+. If you need voice support you will also need Python 2.7 and a C++ compiler. Refer to [the Getting Started section of the docs](https://abal.moe/Eris/docs.html) for more details.
You will need NodeJS 10.4+. If you need voice support you will also need Python 2.7 and a C++ compiler. Refer to [the Getting Started section of the docs](https://abal.moe/Eris/docs) for more details.

```
npm install --no-optional eris
```

If you need voice support, remove the `--no-optional`
If you need voice support, remove the `--no-optional`.

Ping Pong Example
-----------------

```js
const Eris = require("eris");

var bot = new Eris("BOT_TOKEN");
// Replace BOT_TOKEN with your bot account's token
var bot = new Eris("Bot TOKEN");
// Replace TOKEN with your bot account's token

bot.on("ready", () => { // When the bot is ready
console.log("Ready!"); // Log "Ready!"
});

bot.on("error", (err) => {
console.error(err); // or your preferred logger
});

bot.on("messageCreate", (msg) => { // When a message is created
if(msg.content === "!ping") { // If the message content is "!ping"
bot.createMessage(msg.channel.id, "Pong!");
Expand All @@ -45,13 +49,10 @@ More examples can be found in [the examples folder](https://github.com/abalabaha
Useful Links
------------

[The website](https://abal.moe/Eris) includes more detailed information on getting started, as well as documentation for the different components.

[The Discord API channel (#js_eris)](https://abal.moe/Eris/invite) is the best place to get support/contact me.

[The GitHub repo](https://github.com/abalabahaha/eris) has the most updated code.

[The NPM package](https://npmjs.com/package/eris)
- [The website](https://abal.moe/Eris/) has more details and documentation.
- [The Discord API channel (#js_eris)](https://abal.moe/Eris/invite) is the best place to get support/contact me.
- [The GitHub repo](https://github.com/abalabahaha/eris) is where development primarily happens.
- [The NPM package webpage](https://npmjs.com/package/eris) is, well, the webpage for the NPM package.

License
-------
Expand Down
1 change: 1 addition & 0 deletions esm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const {
GuildChannel,
GuildIntegration,
GuildPreview,
GuildTemplate,
Invite,
Member,
Message,
Expand Down
8 changes: 6 additions & 2 deletions examples/basicCommands.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const Eris = require("eris");

// Replace BOT_TOKEN with your bot account's token
const bot = new Eris.CommandClient("BOT_TOKEN", {}, {
// Replace TOKEN with your bot account's token
const bot = new Eris.CommandClient("Bot TOKEN", {}, {
description: "A test bot made with Eris",
owner: "somebody",
prefix: "!"
Expand All @@ -11,6 +11,10 @@ bot.on("ready", () => { // When the bot is ready
console.log("Ready!"); // Log "Ready!"
});

bot.on("error", (err) => {
console.error(err); // or your preferred logger
});

bot.registerCommandAlias("halp", "help"); // Alias !halp to !help

bot.registerCommand("ping", "Pong!", { // Make a ping command
Expand Down
8 changes: 6 additions & 2 deletions examples/embed.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
const Eris = require("eris");

const bot = new Eris("BOT_TOKEN");
// Replace BOT_TOKEN with your bot account's token
// Replace TOKEN with your bot account's token
const bot = new Eris("Bot TOKEN");

bot.on("ready", () => { // When the bot is ready
console.log("Ready!"); // Log "Ready!"
});

bot.on("error", (err) => {
console.error(err); // or your preferred logger
});

bot.on("messageCreate", (msg) => { // When a message is created
if(msg.content === "!embed") { // If the message content is "!embed"
bot.createMessage(msg.channel.id, {
Expand Down
11 changes: 7 additions & 4 deletions examples/intent.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
const Eris = require("eris");

const clientOptions = {
// Replace TOKEN with your bot account's token
const bot = new Eris("Bot TOKEN", {
intents: [
"guilds",
"guildMessages"
]
};
const bot = new Eris("BOT_TOKEN", clientOptions);
// Replace BOT_TOKEN with your bot account's token
});

bot.on("ready", () => { // When the bot is ready
console.log("Ready!"); // Log "Ready!"
});

bot.on("error", (err) => {
console.error(err); // or your preferred logger
});

bot.on("guildCreate", (guild) => { // When the client joins a new guild
console.log(`New guild: ${guild.name}`);
});
Expand Down
8 changes: 6 additions & 2 deletions examples/pingpong.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
const Eris = require("eris");

const bot = new Eris("BOT_TOKEN");
// Replace BOT_TOKEN with your bot account's token
// Replace TOKEN with your bot account's token
const bot = new Eris("Bot TOKEN");

bot.on("ready", () => { // When the bot is ready
console.log("Ready!"); // Log "Ready!"
});

bot.on("error", (err) => {
console.error(err); // or your preferred logger
});

bot.on("messageCreate", (msg) => { // When a message is created
if(msg.content === "!ping") { // If the message content is "!ping"
bot.createMessage(msg.channel.id, "Pong!");
Expand Down
9 changes: 7 additions & 2 deletions examples/playFile.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
const Eris = require("eris");

const bot = new Eris("BOT_TOKEN");
// Replace BOT_TOKEN with your bot account's token
// Replace TOKEN with your bot account's token
const bot = new Eris("Bot TOKEN");

const playCommand = "!play";

bot.on("ready", () => { // When the bot is ready
console.log("Ready!"); // Log "Ready!"
});

bot.on("error", (err) => {
console.error(err); // or your preferred logger
});

bot.on("messageCreate", (msg) => { // When a message is created
if(msg.content.startsWith(playCommand)) { // If the message content starts with "!play "
if(msg.content.length <= playCommand.length + 1) { // Check if a filename was specified
Expand Down
8 changes: 6 additions & 2 deletions examples/reactionButtons.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const Eris = require("eris");

// Replace BOT_TOKEN with your bot account's token
const bot = new Eris.CommandClient("BOT_TOKEN", {}, {
// Replace TOKEN with your bot account's token
const bot = new Eris.CommandClient("Bot TOKEN", {}, {
description: "A test bot made with Eris",
owner: "somebody",
prefix: "!"
Expand All @@ -11,6 +11,10 @@ bot.on("ready", () => { // When the bot is ready
console.log("Ready!"); // Log "Ready!"
});

bot.on("error", (err) => {
console.error(err); // or your preferred logger
});

bot.registerCommand("ping", "Pong!", { // Make a ping command
// Responds with "Pong!" when someone says "!ping"
description: "Pong!",
Expand Down
Loading

0 comments on commit 7fd8104

Please sign in to comment.