Commit graph

444 commits

Author SHA1 Message Date
ayntee
6a58a69031
fix(models/rest): unique key for form data item 2021-01-28 20:05:12 +04:00
DjDeveloper
6d21c762de
Merge pull request #97 from DjDeveloperr/slash
support multiple attachments
2021-01-28 20:52:38 +05:30
DjDeveloperr
60e2655085 support multiple attachments 2021-01-28 19:55:37 +05:30
Helloyunho
bf0c82f273 fix unpatched part 2021-01-28 04:14:39 +09:00
Helloyunho
2a38fc1e00 Fix member nick type 2021-01-28 04:10:11 +09:00
DjDeveloper
be3a793fa1
Merge pull request #96 from DjDeveloperr/slash
add APPLICATION_COMMAND_* events
2021-01-27 18:52:44 +05:30
DjDeveloperr
87c15a9283 add APPLICATION_COMMAND_* events 2021-01-27 01:45:47 +05:30
Helloyunho
54e0e41dc7 just test thing 2021-01-25 23:02:43 +09:00
DjDeveloperr
11fc7e1e21 fix 2021-01-25 19:00:58 +05:30
DjDeveloperr
0edc74b1db fix 2021-01-25 18:56:32 +05:30
DjDeveloperr
c2e7916aa3 some changes to Role 2021-01-25 17:08:56 +05:30
DjDeveloperr
d36922c0b7 Merge remote-tracking branch 'origin/main' into slash 2021-01-25 17:04:44 +05:30
DjDeveloperr
dce4c99cbd many things 2021-01-25 17:04:43 +05:30
DjDeveloperr
c1cd6276ae feat: GuildTextChannel#{permissionsFor,overwritesFor}, TextChannel#triggerTyping, many other things 2021-01-25 16:58:46 +05:30
Helloyunho
30b5a17492 Change getDMchannel to createDM 2021-01-25 13:18:56 +09:00
DjDeveloper
108bd3ea62
Merge pull request #94 from Helloyunho/some-fixes
Fix Some Bugs and Add Some Useful Things
2021-01-25 00:30:07 +05:30
Helloyunho
c880a73771 Do some tests and fix (or add) some 2021-01-25 03:49:08 +09:00
DjDeveloperr
04c4e7760b fix many things fr 2021-01-25 00:06:19 +05:30
DjDeveloperr
2dcce6e2bb feat: sharding (!) 2021-01-24 22:16:10 +05:30
Helloyunho
dfeb784dfc Merge branch 'main' of https://github.com/harmonyland/harmony into some-fixes 2021-01-25 01:07:21 +09:00
DjDeveloperr
ebb4be897a add file support (really) & slash.commands.bulkEdit 2021-01-24 19:50:49 +05:30
Helloyunho
ad3a0d4b79 dj says he was drunk so I made a fix 2021-01-24 22:20:11 +09:00
DjDeveloperr
0cf60b7def remove unnecessary asyncs from rest 2021-01-21 20:13:07 +05:30
DjDeveloperr
e83dd3353e requested changes 2021-01-21 19:11:35 +05:30
DjDeveloperr
65e9583445 FIXED ERORRS 2021-01-21 18:50:43 +05:30
DjDeveloperr
dc1e2bbc6e fix errors (github resolve editor sucks) 2021-01-21 18:47:03 +05:30
DjDeveloper
06997a1c18
Merge branch 'main' into slash 2021-01-21 18:43:47 +05:30
DjDeveloperr
77b08747ab fuck you linter 2021-01-21 18:15:31 +05:30
DjDeveloperr
cc75a34d56 complete rest added 2021-01-21 18:09:51 +05:30
Helloyunho
cc657cc4d8 Fix return types and make it much better 2021-01-21 15:16:45 +09:00
Helloyunho
617e3b6204 Make prune type a bit better 2021-01-21 14:54:33 +09:00
Helloyunho
e99bf61f3a Fix the requested part and mute eslint for now 2021-01-21 14:45:55 +09:00
Helloyunho
8b564a4b49 Add guild prune function 2021-01-21 14:37:10 +09:00
Helloyunho
2d27068f5c Add get guild prune. add role delete in role structure 2021-01-21 14:24:41 +09:00
Helloyunho
989706e71a Add role edit feature, add guild property to role(idk why it wasn't there) 2021-01-21 01:28:18 +09:00
DjDeveloperr
e7b0804616 feat: port to typed EventEmitter 2021-01-20 15:35:15 +05:30
Helloyunho
0cae198f2c Merge branch 'main' of https://github.com/harmony-org/harmony into guild-update 2021-01-20 16:02:49 +09:00
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