Commit Graph

102 Commits

Author SHA1 Message Date
SeanOMik 3b99b5bd23
Fix some emoji json parsing issues 2020-06-22 16:57:16 -05:00
SeanOMik e3c561a690
Export and import everything in `nimcord.nim` 2020-06-22 16:52:39 -05:00
SeanOMik bb0f397aae
Remove bot example from client.nim. Also export `newDiscordClient` 2020-06-22 16:46:56 -05:00
SeanOMik b64edd95e0
Fix documentation generating scripts. 2020-06-22 15:57:42 -05:00
SeanOMik b3e10e6bc4
Restructure project for nimble 2020-06-22 15:41:32 -05:00
SeanOMik 545caa3380
Fix guild.getGuildMember 2020-06-22 15:18:28 -05:00
SeanOMik e5504a32d8
Finish all gateway events. Still needs testing. 2020-06-22 15:15:13 -05:00
SeanOMik 6dc65dfd23
Convert cache to use Tables instead and more event dispatches 2020-06-22 13:04:01 -05:00
SeanOMik 980d3c773e
Remove TODO 2020-06-22 12:32:24 -05:00
SeanOMik c6399b31eb
Reconnecting was really broken, now fixed, but still needs more testing 2020-06-22 00:42:59 -05:00
SeanOMik 133975b59d
Get reconnecting done, needs testing! 2020-06-22 00:23:25 -05:00
SeanOMik 0c3f1d040c
Remove debug, globalClient, and set clientUser in dispatch ready event 2020-06-22 00:22:48 -05:00
SeanOMik a38e361d54
Add deleteChannelPermission 2020-06-21 15:13:58 -05:00
SeanOMik 1b4fcaaa79
Allow editing of message's embeds 2020-06-21 00:13:54 -05:00
SeanOMik b40fe05df4
Set members presence's and fix Activity constructor. 2020-06-21 00:12:12 -05:00
SeanOMik 4a1798c346
Add ability to update bot's presence with Presence custom type 2020-06-20 23:38:23 -05:00
SeanOMik dc681a62e4
Add `cacheGuildChannel` 2020-06-20 23:37:52 -05:00
SeanOMik 76b1797bee
Finish channelCreateEvent 2020-06-20 23:05:51 -05:00
SeanOMik 5b5b55735e
Add reconnect todo 2020-06-20 14:29:45 -05:00
SeanOMik eba9eeb741
Finish some TODO's 2020-06-20 14:20:13 -05:00
SeanOMik 5166ffe8ed
Remove some finished TODO's 2020-06-20 14:01:20 -05:00
SeanOMik 06f0e536b1
Send files 2020-06-20 13:59:49 -05:00
Intexisty c105a0c29a
added event classes, working on dispatch 2020-06-20 13:24:21 -05:00
SeanOMik b29e282300
Parse more json fields in message constructor. 2020-06-20 13:08:53 -05:00
SeanOMik 91f848208a
Add more tests in embeds 2020-06-20 12:48:59 -05:00
SeanOMik 8843b25906
Send embeds! 2020-06-20 01:33:52 -05:00
SeanOMik b608f7dfd3
Fix some issues with Embed 2020-06-20 01:33:27 -05:00
SeanOMik 8fb6fda602
Create embed type. 2020-06-20 01:20:58 -05:00
SeanOMik 24fea025a1
Add Cache.getUser proc and add some documentation. 2020-06-20 00:34:43 -05:00
SeanOMik d88e31e3c3
Add documentation 2020-06-19 23:01:22 -05:00
SeanOMik 2c30155764
Remove some debug messages 2020-06-19 22:59:02 -05:00
SeanOMik 97e785de9b
Create guild.getGuildMemberRoles 2020-06-19 16:15:55 -05:00
SeanOMik 4d135a73c7
Convert member.roles to seq[snowflake] from seq[Role] 2020-06-19 16:10:39 -05:00
SeanOMik 60569d6c87
Add emoji endpoints. 2020-06-19 16:09:06 -05:00
SeanOMik caa20f2c9c
Finish all guild related endpoints and add a guildID field to some types 2020-06-19 01:32:28 -05:00
SeanOMik 65344ad26c
Check if handleDiscordEvent raises an exception 2020-06-19 00:23:32 -05:00
SeanOMik 57c4a44fca
Add guildID field in Role type. 2020-06-18 23:57:23 -05:00
SeanOMik 4bf2ad785e
Create Image type. 2020-06-18 22:01:22 -05:00
SeanOMik a665d00030
Add a getGuild proc and most some things around. 2020-06-18 21:24:15 -05:00
SeanOMik deb19c8842
Add documentation in eventhandler.nim 2020-06-18 21:23:56 -05:00
SeanOMik 9e4da6a718
Fix code blocks and add documentation for some client procs. 2020-06-18 21:20:09 -05:00
SeanOMik 6d7897a100
Add some documentation for types, remove ChannelType field in guild.nim 2020-06-18 19:08:30 -05:00
SeanOMik a856900693
Create Guild.createGuild proc. 2020-06-18 19:08:02 -05:00
SeanOMik a209c9e680
Export Channel fields. 2020-06-18 18:55:04 -05:00
SeanOMik 3397754545
Add Role type to Member. 2020-06-18 18:34:13 -05:00
SeanOMik c8810604ac
Add Role, Emoji, and Permissions to the Guild type. 2020-06-18 18:31:57 -05:00
SeanOMik 5fa52cd38b
Get role.permissions correctly on construction. 2020-06-18 18:29:00 -05:00
SeanOMik 28649645e3
Add new permissions constructor and create Role type 2020-06-18 18:27:03 -05:00
SeanOMik 153b5ee764
Fix documentation generation error 2020-06-18 18:12:44 -05:00
SeanOMik bc650bb867
Add Channel.editChannelPermissions 2020-06-18 18:10:32 -05:00