Commit graph

407 commits

Author SHA1 Message Date
Helloyunho
8ad1a2ac6f Add jsdoc comments 2021-01-18 20:56:51 +09:00
Helloyunho
78ae0bbb56 Make guild delete and remove delete function from BaseManager 2021-01-16 23:22:13 +09:00
Helloyunho
19e2020e38 Add guild edit feature, fix some types 2021-01-16 02:15:24 +09:00
Helloyunho
7e11b8a351 Add preview in guild structure 2021-01-16 01:48:08 +09:00
Helloyunho
35da2dbe98 Add guild preview feature 2021-01-16 01:45:08 +09:00
Helloyunho
d8e65a4328 Add guild create function and change the name of GuildChannel 2021-01-16 01:15:52 +09:00
DjDeveloperr
3f436b2b3f Merge remote-tracking branch 'origin/main' into slash
merge main
2021-01-14 18:24:05 +05:30
DjDeveloper
0de9b57204
Merge pull request #71 from ayntee/interac-member
fix: add permissions field to InteractionPayload#member
2021-01-10 15:17:46 +05:30
DjDeveloperr
48976e779b collectors, rest options and all that 2021-01-07 19:16:56 +05:30
ZiomaleQ
1d562f6997 adding timeout to awaitAvailability 2021-01-07 11:08:37 +01:00
ZiomaleQ
2fadcfa407 awaitAvailability function returns Promise<Guild> now 2021-01-05 16:27:03 +01:00
ZiomaleQ
fbd6eae244 deleting unused function parameter 2021-01-05 16:24:56 +01:00
ZiomaleQ
734133bcca Code fix #3, requirements again 2021-01-05 14:53:00 +01:00
ZiomaleQ
60164122bf Adding promise ending ')' 2021-01-05 14:51:04 +01:00
ZiomaleQ
6b5c15d19a event based await in guildAvailability method 2021-01-05 14:42:27 +01:00
ZiomaleQ
c4a3fbc45c Code fix #2, requirements again 2021-01-05 14:14:24 +01:00
ZiomaleQ
4364d3879b Code fix to match requirements 2021-01-05 14:12:21 +01:00
ZiomaleQ
e009ae3127 rewriting awaitAvailability 2021-01-05 14:10:16 +01:00
ZiomaleQ
4cbc2b344d
Merge pull request #1 from harmony-org/main
Update fork
2021-01-05 13:33:33 +01:00
Radoslaw Partyka
055a030c4e Code / style fixes 2021-01-01 17:09:41 +01:00
Radoslaw Partyka
6c3f71669d awaitAvailability is awaitAvailability now instead of awaitAvailiable 2021-01-01 16:55:27 +01:00
Radoslaw Partyka
c322c25fb0 awaitAvailability in guild struct 2021-01-01 16:54:33 +01:00
Radoslaw Partyka
6e8af1f7da Removing redundant code from guild struct 2021-01-01 16:27:30 +01:00
DjDeveloperr
e9f461fef4 ok linter 2021-01-01 15:05:53 +05:30
DjDeveloperr
b112b6ae36 remove slashModule decorator 2021-01-01 14:22:15 +05:30
DjDeveloperr
33f103279d try fix again 2021-01-01 13:46:22 +05:30
DjDeveloperr
432555e2fb try fix 2021-01-01 13:41:44 +05:30
DjDeveloperr
8f4433dc9f allow SlashClient in slash decorators 2021-01-01 13:30:13 +05:30
DjDeveloperr
c3fafdfcf0 more things 2021-01-01 11:25:23 +05:30
DjDeveloperr
e3bce85f09 fix channels.array and add guildLoaded event 2021-01-01 10:30:11 +05:30
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