Commit Graph

113 Commits

Author SHA1 Message Date
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
SeanOMik 0c16ecada5
Make some procs async 2020-06-18 18:10:21 -05:00
SeanOMik 28fd1c443a
Add Permissions to the channels type. 2020-06-18 18:05:28 -05:00
SeanOMik 0af96d238d
Add permissionsToJson 2020-06-18 18:05:09 -05:00
SeanOMik ddfa53805a
Export type fields. 2020-06-18 17:48:48 -05:00
SeanOMik 05d44e314b
Add permission type. 2020-06-18 17:48:36 -05:00
SeanOMik f121a3043d
Remove unneeded pragma 2020-06-18 17:01:48 -05:00
SeanOMik 9b320ff8ad
Remove unused import 2020-06-18 16:19:55 -05:00
SeanOMik b639a8da61
Add Emoji.== operator 2020-06-18 16:19:32 -05:00
SeanOMik ba12b8ae03
Add some more fields to some of the message proc's docs 2020-06-18 16:12:00 -05:00
SeanOMik 6917535954
Make member and user `ref object of DiscordObject` 2020-06-18 15:58:10 -05:00
SeanOMik 4af2f4f711
Add documentation for Message.editMessage 2020-06-18 15:46:22 -05:00
SeanOMik fb71f31ea5
Finish all of channel endpoints that were supposed to be in message.nim 2020-06-18 15:45:31 -05:00
SeanOMik 61cfff995a
Add a test command for adding mesage reactions. 2020-06-18 15:32:28 -05:00
SeanOMik 4a6f941683
Add proc documentation 2020-06-18 15:32:05 -05:00
SeanOMik 1c6e24ba29
Add reaction, edit, and delete message 2020-06-18 15:31:51 -05:00
SeanOMik 82147ce491
Fix waiting for rate limiting 2020-06-18 15:31:38 -05:00
SeanOMik 195dcff3ed
Export discord object == operator 2020-06-18 15:31:28 -05:00
SeanOMik b8c61487a2
Add emoji type 2020-06-18 15:31:12 -05:00
SeanOMik f1ec478904
Finish all channel endpoints that should be in channel.nim
There's still some other channel related endpoints but they should be in `message.nim` not `channel.nim`
2020-06-18 00:52:32 -05:00
SeanOMik 0e1cb7280a
Add Channel.getMessages method 2020-06-17 23:51:38 -05:00
SeanOMik f312b914ff
Fix code block thing for documentation 2020-06-17 23:51:20 -05:00
SeanOMik 3630005e19
Simplify creation of IOError exception 2020-06-17 23:50:17 -05:00
SeanOMik 38c25b670d
Add headers into sendRequest debug message 2020-06-17 23:49:28 -05:00
SeanOMik 4d29ea5a47
Remove unneeded import 2020-06-17 22:37:21 -05:00
SeanOMik 58020c2cc7
Add some documentation 2020-06-17 22:36:37 -05:00
SeanOMik f5bab02a83
Add GuildCreateEvent 2020-06-17 22:19:13 -05:00
SeanOMik 875050c6b6
Add guild 2020-06-17 22:18:59 -05:00
SeanOMik b3dc748a64
Create channel, cache, and split client types into seperate nim file 2020-06-17 22:18:54 -05:00
SeanOMik 947dc6884a
Move some request things into nimcordutils 2020-06-17 22:18:22 -05:00
SeanOMik a4055c5fd9
Fix rate limit 2020-06-17 22:17:46 -05:00
SeanOMik ef1d87a311
Fix getIDFromJson 2020-06-17 22:16:58 -05:00
SeanOMik ac325ead99
Get user discriminator correctly 2020-06-17 22:16:21 -05:00
SeanOMik 9a6bed2992
Fix message constructor 2020-06-17 22:16:08 -05:00
SeanOMik 2bf20854d6
Push untested ratelimiting. 2020-06-17 00:34:23 -05:00
SeanOMik 2e12d71f0a
Fix message event dispatch 2020-06-17 00:34:06 -05:00
SeanOMik 55b10c0593
Dont shadow json module in message constructor also. 2020-05-31 01:15:16 -05:00
SeanOMik ec8e41fa84
Fix exception when trying to read from token file. 2020-05-31 01:14:56 -05:00
SeanOMik 6781ee5eea
Dont shadow json module. 2020-05-31 01:14:21 -05:00
SeanOMik 512239b986
Read token from file. 2020-05-31 01:13:57 -05:00
SeanOMik 5d33830255
Create utils file for various things. 2020-05-31 00:10:18 -05:00
SeanOMik 44aee846b1
Create message create event. 2020-05-31 00:09:30 -05:00
SeanOMik 5bdf6dc134
Create message type 2020-05-31 00:08:44 -05:00
SeanOMik 140d173d8d
Add more fields to User type and create Member type. Also constructors 2020-05-30 23:44:48 -05:00
SeanOMik 858ccf33c7
Merge remote-tracking branch 'origin/master' 2020-05-30 21:49:50 -05:00
SeanOMik a1a63f93e2
Fix having multiple listeners for the same event. 2020-05-30 21:45:11 -05:00
Intexisty 16c3fdadc6
added user & GuildMember 2020-05-30 14:13:58 -05:00
SeanOMik b78d6958ae
Make snowflake type public. 2020-05-30 00:11:46 -05:00
SeanOMik ce613cb3cc
Add discord object type. 2020-05-30 00:10:06 -05:00
SeanOMik ce11b1613c
Finish event system. 2020-05-29 23:59:23 -05:00
SeanOMik edbde752af
Start on an event handler. It may work or not 🤷 2020-05-29 01:21:02 -05:00
SeanOMik 0b11d2f5e0
Get the gateway heartbeating. 2020-05-29 01:20:39 -05:00
SeanOMik e87241d7a6
Get the client connected but nothing else. 2020-05-28 00:50:53 -05:00