Commit graph

427 commits

Author SHA1 Message Date
DjDeveloperr
b344c2e24a fix: Guild#chunk 2021-01-01 10:18:18 +05:30
DjDeveloperr
8edef36ead fix 2020-12-31 10:42:13 +05:30
DjDeveloperr
df66f4ea3e Merge remote-tracking branch 'origin/main' into slash 2020-12-31 10:38:24 +05:30
DjDeveloperr
7a2b71b648 feat: full invite support 2020-12-31 10:37:40 +05:30
DjDeveloperr
417854b1bb quick fix - use _delete for cache delete 2020-12-31 10:19:58 +05:30
Helloyunho
e1a8a8526a
Merge branch 'main' into main 2020-12-29 15:30:41 +09:00
DjDeveloperr
2ddb6bf5a5 fix 2020-12-29 11:47:36 +05:30
DjDeveloper
8463e59d4f
Merge branch 'main' into slash 2020-12-29 11:44:17 +05:30
DjDeveloper
205f88281b
Merge pull request #77 from ayntee/role-struct
feat: add Role#tags prop
2020-12-29 11:42:52 +05:30
DjDeveloperr
63ae6f4312 feat: rename fetch -> fetchInvite 2020-12-29 10:13:28 +05:30
Helloyunho
492ebe91f8
Merge pull request #74 from ayntee/emoji-methods
feat(structures): add Emoji methods
2020-12-29 12:46:04 +09:00
Helloyunho
991770d211 Change the event typing way and add <Client>.waitFor method 2020-12-29 11:52:30 +09:00
Fishuke
28734cea17 Fix using before initialization. 2020-12-29 01:04:41 +03:00
Fishuke
7d441688e2 fix typo 2020-12-29 01:02:43 +03:00
Fishuke
36e174a50a fix JSDoc 2020-12-29 00:44:51 +03:00
DjDeveloperr
9178e6cec1 feat: new rest methods 2020-12-28 18:05:08 +05:30
Ayyan
e37e0c3885
Update role.ts 2020-12-28 12:18:09 +04:00
Ayyan
b7a93a280f
Update role.ts 2020-12-28 12:14:10 +04:00
ayntee
93eee2f15d I have no idea what I am doing x2 2020-12-26 11:12:06 +04:00
ayntee
4cf153aaac I have no idea what I am doing 2020-12-26 11:09:09 +04:00
ayntee
900f6c3c3b Make linter happy 2020-12-26 11:07:33 +04:00
ayntee
95c2200386 Make DjDev happy 2020-12-26 11:05:26 +04:00
ayntee
c7d117cd54 Make CI happy x2 2020-12-26 10:49:52 +04:00
ayntee
e25b7a8f5b Make CI happy 2020-12-26 10:47:13 +04:00
ayntee
678e988aec Remove redundant null assertion 2020-12-26 10:38:20 +04:00
ayntee
0a066a32e4 Goddamn it, i gotta install prettier plugin on vim 2020-12-26 10:36:52 +04:00
ayntee
a14104ad14 Github online editor FTW 2020-12-26 10:36:09 +04:00
ayntee
a69988b653 ci: add Emoji#id check 2020-12-26 10:34:15 +04:00
ayntee
73e9ba9a25 fix: DELETE request instead of PATCH 2020-12-26 10:17:54 +04:00
ayntee
6c576bec0a chore: implement role resolution internally 2020-12-26 10:11:26 +04:00
Helloyunho
4129ea699b
Fix mistake 2020-12-26 12:07:15 +09:00
Helloyunho
65b5c50ec3
Merge branch 'main' into reaction 2020-12-26 12:04:59 +09:00
DjDeveloper
d46cd0cbe5
Merge pull request #67 from DjDeveloperr/slash
feat: HTTP based Slash Commands util
2020-12-26 08:24:38 +05:30
DjDeveloper
31b3c08580
Merge pull request #70 from ayntee/sep-deps
deps: segregate third-party deps to deps.ts file
2020-12-26 08:18:09 +05:30
DjDeveloper
6be099398f
Merge pull request #76 from ayntee/ref
refactor: move snowflake.ts to utils
2020-12-26 08:16:42 +05:30
DjDeveloper
523fc432e9
Merge pull request #75 from ayntee/invite-methods
feat: add Invite#delete() method
2020-12-26 08:15:09 +05:30
DjDeveloper
0e6814690d
Merge pull request #73 from ayntee/switch-case
refactor(gateway): use switch-case to avoid repetitive code
2020-12-26 08:10:00 +05:30
DjDeveloper
3a80e162c0
Merge pull request #69 from ayntee/guild-template
feat: add template structure and methods
2020-12-26 08:08:05 +05:30
ayntee
1e753cf51d feat: add Role#tags prop 2020-12-25 22:29:26 +04:00
ayntee
f2ee69c130 refactor: move snowflake.ts to utils 2020-12-25 20:47:23 +04:00
ayntee
104aa4249e chore: consistent return type 2020-12-25 20:45:21 +04:00
ayntee
e919ad38de feat: add Invite#delete() method 2020-12-25 20:44:05 +04:00
ayntee
6dd40afd3e Make linter happy :) 2020-12-25 20:41:21 +04:00
ayntee
bef4d45a40 style: format files 2020-12-25 20:38:43 +04:00
ayntee
f3fa4ca380 fix: remove type "null" from Emoji#id 2020-12-25 20:38:06 +04:00
ayntee
6c6334ee07 fix: add Emoji#guild property back 2020-12-25 20:36:23 +04:00
ayntee
c59d8f1639 style: format structures/emoji.ts 2020-12-25 20:33:45 +04:00
ayntee
9c048686c8 feat(structures): add Emoji methods 2020-12-25 20:31:53 +04:00
ayntee
264d6b49fb refactor: destructure code and reason from event 2020-12-25 20:18:35 +04:00
ayntee
f9e07f4f43 refactor(gateway): use switch-case to avoid repetitive code 2020-12-25 20:13:06 +04:00
Helloyunho
4ab29bc91c Merge branch 'main' of https://github.com/Helloyunho/harmony into reaction 2020-12-25 22:14:19 +09:00
Helloyunho
65eace4046 Update message and textchannel 2020-12-25 22:09:29 +09:00
ayntee
30724dc791 fix: add permissions field to InteractionPayload#member 2020-12-25 16:22:10 +04:00
ayntee
255bc2d4e9 style: format files 2020-12-25 16:11:41 +04:00
ayntee
0a14264b0e deps: segregate third-party deps to deps.ts file 2020-12-25 15:47:24 +04:00
ayntee
b76c26ff7c docs: capitalize props' description 2020-12-25 15:20:48 +04:00
ayntee
be662a230b chore: add return type and handle raw API payload 2020-12-25 14:59:24 +04:00
ayntee
d1fcce7b83 feat: add template structure and methods 2020-12-25 14:21:01 +04:00
Helloyunho
540f3b1877 Support removing other user's reactions 2020-12-25 13:44:42 +09:00
Helloyunho
eac5d52d83 Handle null-id emojis 2020-12-24 09:59:32 +09:00
Helloyunho
315fd0d0da Make a test command 2020-12-24 09:59:01 +09:00
Helloyunho
9e6d2c1047 Add reactions 2020-12-24 09:37:57 +09:00
DjDeveloperr
015b7951d8 fix slash modules 2020-12-23 15:26:02 +05:30
DjDeveloperr
94a447921d feat: member screening types update 2020-12-22 15:40:19 +05:30
DjDeveloperr
a9338ad88a Merge remote-tracking branch 'origin/main' into slash 2020-12-22 12:30:48 +05:30
DjDeveloperr
03ea5df551 feat: middlewares and http-based slash util 2020-12-22 12:28:45 +05:30
DjDeveloperr
da0bfc12c7 feat: slash builde 2020-12-21 19:18:46 +05:30
Aki
3695b81de6
Merge pull request #66 from DjDeveloperr/slash
SlashClient & RESTManager can run alone and added APIMap
2020-12-20 21:01:39 +09:00
DjDeveloperr
cac3c5c9e3 chore: make slashclient standalone and restmanager accept options 2020-12-20 15:15:49 +05:30
Helloyunho
9688d248e3 Add edit channel feature 2020-12-20 18:11:37 +09:00
DjDeveloperr
4d8eabcc2c Merge remote-tracking branch 'origin/main' into slash 2020-12-20 14:12:57 +05:30
DjDeveloperr
5fae38fce6 feat: add api route builder 2020-12-20 14:12:24 +05:30
Helloyunho
dced786e60 Add interfaces for channel edit 2020-12-20 17:14:57 +09:00
Helloyunho
dd70d96d50 Change category channel payload name 2020-12-20 17:14:05 +09:00
Helloyunho
837f045bdd Remove nsfw property in some channels
Some guild channels can't be a nsfw channel
2020-12-20 17:13:25 +09:00
Helloyunho
a04f6ab973 Fix managers' array function 2020-12-19 16:58:40 +09:00
Helloyunho
d7f4b244c1 Add Sticker Feature 2020-12-17 10:20:06 +09:00
Helloyunho
803700a0cc
Merge pull request #61 from DjDeveloperr/slash
Add Sub Commands and Sub Command Group handlers and decorators
2020-12-16 22:52:08 +09:00
DjDeveloperr
9c46287e61 feat: change SlashClient#handle (BREAKING) 2020-12-16 18:41:01 +05:30
DjDeveloperr
e0154ceec1 feat(slash): add support for sub and group handling (this drove me crazy) 2020-12-16 05:05:26 -08:00
DjDeveloperr
999fe88aa4 feat(slash): complete types 2020-12-16 16:12:52 +05:30
DjDeveloperr
71913ce239 feat: shard - the beginning 2020-12-16 15:30:13 +05:30
DjDeveloperr
d0f48f601a fix(command): broke when user sent just prefix 2020-12-16 14:54:42 +05:30
Helloyunho
55ddc64187
Merge pull request #56 from DjDeveloperr/slash
feat: Slash Commands & Interactions [WIP?]
2020-12-16 10:53:36 +09:00
DjDeveloperr
844a408c74 export SlashModule 2020-12-15 11:08:37 +05:30
Snowflake
6db3a4fc6e
add ColorUtil 2020-12-14 18:57:36 +05:45
Snowflake
31df6a4542
reformat, linter 2020-12-14 14:35:02 +05:45
Snowflake
dd2c3c1f8c
lint 2020-12-14 13:32:13 +05:45
Snowflake
96ae0a5398
jsdoc 2020-12-14 13:16:08 +05:45
Snowflake
79437c8936
update collection methods
changes the methods like first(), last() and random()
2020-12-14 13:14:14 +05:45
DjDeveloperr
3dcf57c658 feat(slash): add SlashModule and sub command support 2020-12-12 17:57:35 +05:30
DjDeveloperr
e6be50cdc7 fix 2020-12-11 15:47:33 +05:30
DjDeveloperr
97fce78953 feat(slash): try add new methods 2020-12-11 15:47:05 +05:30
DjDeveloperr
bb662267cb feat(slash): add temp?: boolean 2020-12-10 16:12:03 +05:30
DjDeveloperr
e1281736ec feat(slash): add @slash decorator support 2020-12-10 14:40:00 +05:30
DjDeveloperr
b0d6092c25 feat(slash): more... 2020-12-10 13:49:43 +05:30
DjDeveloperr
6e014b353e feat(slash): many new things 2020-12-10 12:25:52 +05:30
DjDeveloperr
d14fe15d68 feat: slash commands 2020-12-10 10:06:36 +05:30
DjDeveloperr
91c07e551e feat(gateway): option to customize client props 2020-12-09 10:48:39 +05:30
DjDeveloperr
df34ce9a95 feat(command): add nsfw property and checks 2020-12-08 12:39:58 +05:30
DjDeveloperr
65766db1ac fix: multiple prefix conflicts 2020-12-08 12:35:34 +05:30
DjDeveloperr
0eadfd829e feat(extensions): add sub prefix 2020-12-08 12:13:06 +05:30
DjDeveloperr
1119379fb5 fix: nightly build failing 2020-12-06 13:15:38 +05:30
DjDeveloperr
97d6f3fd05 fix(lint) 2020-12-06 13:13:41 +05:30
DjDeveloperr
659080f341 feat(decorators): stablize props and remove after loading 2020-12-06 13:11:37 +05:30
DjDeveloperr
f2e906987c Merge remote-tracking branch 'origin/main' into decorators 2020-12-06 12:58:39 +05:30
DjDeveloperr
895b13a9b1 feat(decorators): add support for @event and @command decorators 2020-12-06 12:58:01 +05:30
Helloyunho
4db6203650
Merge pull request #53 from noamboy2006/main
fix: minor grammar/typo fixes in comments
2020-12-05 18:37:34 +09:00
DjDeveloperr
f6c307844f feat(voice): add Gateway#updateVoiceState, VoiceChannel#join, VoiceChannel#leave 2020-12-05 14:26:43 +05:30
Helloyunho
a66a18cdc0 Run formatter 2020-12-05 16:20:08 +09:00
Helloyunho
c3d025529d Remove other mentions in Message
We already have MessageMentions class, which handles all mentions.
2020-12-05 16:19:51 +09:00
Helloyunho
8a0882cd4d Use intent from connect function if it was set in both function and client setting 2020-12-05 16:18:45 +09:00
DjDeveloperr
9c67ff6c84 Merge branch 'main' of https://github.com/harmony-org/harmony into main 2020-12-05 12:40:06 +05:30
DjDeveloperr
472c7e33f8 feat: drop self-bot support 2020-12-05 12:38:52 +05:30
DjDeveloperr
2422866a3b feat(gateway:events): remove debug logs 2020-12-05 12:26:01 +05:30
noamboy2006
43d013b62d lint errors/typos 2020-12-05 11:39:37 +09:00
noamboy2006
fe6930c065 miner grammer/typo fixes is comments. Changed all comments I can find to consider method as a singular noun, tho I might missed a few comments 2020-12-05 11:24:08 +09:00
DjDeveloper
a427c8887d
Merge branch 'main' into main 2020-12-04 14:32:32 +05:30
minibox24
84c106655c .webp => .png 2020-12-04 17:57:59 +09:00
DjDeveloperr
dfb99fb6b9 fix(gateway): handle reconnects better way 2020-12-04 11:23:10 +05:30
Preta-Crowz
1b6d4469bc fix ban feature 2020-12-04 11:33:15 +09:00
minibox24
e553888c1c delete dynamic arg 2020-12-03 22:38:45 +09:00
DjDeveloperr
d4836c2db8 Merge branch 'main' of https://github.com/harmony-org/harmony into main 2020-12-03 12:06:32 +05:30
DjDeveloperr
efbaf7becb feat(MessageOptions): make all fields of allowedMentions optional 2020-12-03 12:06:18 +05:30
DjDeveloperr
174d3cb58c fix(lint) & fix(code) 2020-12-03 10:58:20 +05:30
DjDeveloperr
a8935fc403 fix(jsdoc) 2020-12-03 10:35:29 +05:30
DjDeveloperr
4858bde6bc feat(jsdoc): test fix for deno doc 2020-12-03 10:32:19 +05:30
DjDeveloperr
66dbd7889c feat(jsdoc): remove useless class 2020-12-03 10:19:09 +05:30
DjDeveloperr
caac5fc97e feat(jsdoc): done 2020-12-03 10:12:26 +05:30
DjDeveloperr
d1aba4a981 feat(jsdoc): pretty much done 2020-12-03 09:36:41 +05:30
minibox24
a143399f6e edit cdn.ts 2020-12-03 13:04:44 +09:00
DjDeveloperr
62ed3ac9f7 feat(jsdoc): added some 2020-12-03 08:49:39 +05:30
minibox24
45eadb5d11 linting 2020-12-03 12:03:17 +09:00
minibox24
cdd874275e default function parameter 2020-12-03 11:35:52 +09:00
minibox24
9c42916cd2 add avatarURL defaultAvatarURL 2020-12-03 11:27:19 +09:00
Helloyunho
5e5b4076ce format files and ready for v0.9.0 2020-12-02 21:29:52 +09:00
Helloyunho
0cce37a3de
Don't import from mod.ts 2020-12-02 20:18:45 +09:00
DjDeveloperr
fb110946e0 feat(presence): added caching and last gateway event! 2020-12-02 16:38:10 +05:30
DjDeveloperr
484c6e3c7b feat: clean up things 2020-12-02 15:56:20 +05:30
DjDeveloperr
946f262656 feat(types): add types for new events 2020-12-02 15:47:50 +05:30
Helloyunho
286af83d7a
Merge branch 'main' into main 2020-12-02 19:07:34 +09:00
DjDeveloperr
c7ef17a6d2 feat(reactions): implemented structures and events 2020-12-02 15:29:15 +05:30
DjDeveloperr
a7336c19e3 feat(commands): add CommandCategory and fix messageUpdate 2020-12-02 13:32:00 +05:30
Helloyunho
385731cd91
Oops mistake 2020-12-02 16:58:54 +09:00
Helloyunho
7c8e235bb4
Merge branch 'main' into master 2020-12-02 16:57:02 +09:00
CyberKnight007
afbf9c4d5f -_- 2020-12-02 13:19:58 +05:30
CyberKnight007
d4b6fad79e hahaha 2020-12-02 13:14:30 +05:30
CyberKnight007
e25e1d34c1 #boycottEslint xD 2020-12-02 13:11:48 +05:30
CyberKnight007
2fbd6c99fc feat(invite gateway events) 2020-12-02 12:59:13 +05:30
CyberKnight007
e01d10dd66 made requested changes 2020-12-02 12:50:45 +05:30
CyberKnight007
4fc5734ccc added changes requested by Dj 2020-12-01 22:08:15 +05:30
CyberKnight007
620299462e fixed some weird sheez 2020-12-01 20:03:05 +05:30
CyberKnight007
62c18886ca vsc acting weird -_- 2020-12-01 19:59:48 +05:30
CyberKnight007
66c145676e fixed some things 2020-12-01 19:56:53 +05:30
CyberKnight007
c1ec7a7353 feat invite events 2020-12-01 19:45:43 +05:30
DjDeveloperr
b748086ae7 feat(api): add new api-related methods 2020-12-01 16:48:38 +05:30
DjDeveloperr
50d1da11e6 merge main repo 2020-12-01 13:55:34 +05:30
DjDeveloperr
a6697a75a7 feat: void -- start work 2020-12-01 13:54:49 +05:30
Helloyunho
0baa2c2b51 try not to use unknown 2020-11-30 20:11:49 +09:00
DjDeveloperr
6f60bd5040 feat(guildMemberAdd.ts): change unknown to Member 2020-11-28 12:38:14 +05:30
DjDeveloperr
e9490ff777 fix: error 2020-11-28 10:54:36 +05:30
DjDeveloperr
1db6aaac8d fix: errors 2020-11-28 10:51:49 +05:30
DjDeveloperr
1de5692120 feat(almost-everything): a lot of things 2020-11-28 10:44:37 +05:30
DjDeveloperr
c1bce28334 feat(integrations|application): implementation 2020-11-25 18:11:51 +05:30
DjDeveloperr
7cbf1e5151 fix: errors 2020-11-25 17:37:39 +05:30
Helloyunho
be2945c5eb Try to remove those anys (NOT TESTED) 2020-11-25 20:53:40 +09:00
DjDeveloperr
25a5025802 fix(Message): Fix inline replies; feat(RESTManager): handle status codes correctly 2020-11-17 09:05:25 +05:30
DjDeveloperr
86f82715ca feat(Message|TextChannel): inline replies 2020-11-17 08:46:32 +05:30
DjDeveloperr
8d4b8f5842 feat(buildinfo): fix inconsistent browser properties 2020-11-16 17:15:30 +05:30
DjDeveloperr
21bda8d406 fix(lint): add types instead of 'any' 2020-11-16 17:07:42 +05:30
DjDeveloperr
85e79913a4 Check ownerOnly before guildOnly and dmOnly 2020-11-15 15:37:55 +05:30
DjDeveloperr
5bb87ef1ba feat(events:role): added guildRoleCreate, guildRoleDelete, guildRoleUpdate 2020-11-15 15:27:44 +05:30
DjDeveloperr
44303dacb1 feat(events:member): add guildMemberAdd, guildMemberRemove, guildMemberUpdate 2020-11-15 15:18:18 +05:30
DjDeveloperr
943b946e5b feat(events): add messageUpdate 2020-11-15 14:53:24 +05:30
DjDeveloperr
5dbd4a84f5 feat(messages): add message caching and messageDelete event 2020-11-15 14:46:36 +05:30
DjDeveloperr
c92f2e3d49 feat(gateway): add raw event 2020-11-15 13:34:24 +05:30
DjDeveloperr
45673d8197 refactor(events:guildEmojiUpdate): split up into add, delete, update events 2020-11-15 13:29:07 +05:30
DjDeveloperr
e72e702764 feat(command): check required args before executing 2020-11-15 13:12:44 +05:30
DjDeveloperr
18efd1efcc feat(command): improve command events args 2020-11-15 13:08:18 +05:30
DjDeveloperr
7835162fd5 feat(commands): replace texts with events, add whitelisting 2020-11-15 13:02:46 +05:30
DjDeveloperr
f6393c8226 feat(extensions): the beginning 2020-11-11 14:34:49 +05:30
DjDeveloperr
9c9726259b Remove MemberRolesManager#delete 2020-11-09 18:16:51 +05:30
DjDeveloperr
72f0b91643 fix(roles): Member#roles now uses MemberRolesManager instead of Role[] 2020-11-09 16:59:22 +05:30
DjDeveloperr
7ba8978276 feat(REST): Improved Error Handling. Now shows better Errors. 2020-11-09 16:33:57 +05:30
DjDeveloperr
b935bb1238 Implement MessageMentions, mentionPrefix, Blocked Users/Channels/Guilds for Commands, self-bot support 2020-11-09 15:59:16 +05:30
DjDeveloperr
15ff747718 Merge branch 'main' of https://github.com/DjDeveloperr/discord.deno into main 2020-11-09 08:37:52 +05:30
DjDeveloperr
4b7699fe1a Requested changes 2020-11-09 08:36:41 +05:30
Helloyunho
8d97f521da
Merge branch 'main' into main 2020-11-09 09:54:20 +09:00
Helloyunho
6be620201e Add command guild 2020-11-09 01:28:37 +09:00
DjDeveloperr
e6b0e45ff6 Requested Changes (2) 2020-11-08 17:07:35 +05:30
DjDeveloperr
94b33c9c8a Requested Changes 2020-11-08 17:06:30 +05:30
DjDeveloperr
87e1aad7e0 feat(RESTManager): Better Errors 2020-11-08 16:50:11 +05:30
DjDeveloperr
c2e690fe78 Added GuildEmojisManager, Guild#emojis, and refactor RESTManager 2020-11-08 16:40:33 +05:30
DjDeveloperr
7ba21edae2 Fix errors 2020-11-08 14:17:01 +05:30
DjDeveloper
b15c5fb79d
Merge branch 'main' into main 2020-11-08 14:13:45 +05:30
DjDeveloperr
e15177c618 Fix some conflicts 2020-11-08 14:01:00 +05:30
Helloyunho
e5ed54a2dd lint error fix 2020-11-08 17:06:54 +09:00
Helloyunho
cc99b028c6 Oops fix error 2020-11-08 17:04:41 +09:00
Helloyunho
5256f05f04 Change names and format codes 2020-11-08 16:58:24 +09:00
DjDeveloperr
04f2912c3c Fix lint... 2020-11-08 13:27:24 +05:30