Commit Graph

1495 Commits

Author SHA1 Message Date
bitfl0wer aa89168928 add mod.rs 2023-05-06 22:47:26 +02:00
bitfl0wer 7920dc62e6 Implement message sending (without attachments) 2023-05-06 22:24:23 +02:00
bitfl0wer 9855465fe4 change visibilities 2023-05-06 22:23:48 +02:00
bitfl0wer 4aaaee3e1e impl SendMessageSchema 2023-05-06 22:23:34 +02:00
bitfl0wer f943f57f03 rename user rate_limits to limits for consistency 2023-05-06 18:52:24 +02:00
bitfl0wer 0efdc8bfc2 Construct new message send method basics 2023-05-06 18:52:09 +02:00
bitfl0wer 63ece12636 change message to messagesendschema 2023-05-06 18:34:38 +02:00
kozabrada123 9f187b8864 Add a debug to heartbeat thread 2023-05-06 11:14:38 +02:00
kozabrada123 7d3077eec4 Pub mod everything so it can be used as a library 2023-05-06 11:13:07 +02:00
kozabrada123 172c000813 Update Websocket to fix premature closing w 1006 2023-05-06 10:39:58 +02:00
kozabrada123 6fdff97722 Update types to fix deserialization errors 2023-05-06 10:39:16 +02:00
kozabrada123 7dbdcf828d Slight code cleanup 2023-05-06 08:39:41 +02:00
kozabrada123 a4fdf18106 Fixed instance lifetime parameter 2023-05-05 22:46:00 +02:00
Flori 14ca6ff098 Merge pull request #29 from polyphony-chat/feature/sending-messages
Bring main up to date
2023-05-05 22:10:43 +02:00
kozabrada123 22bfe1be07 Readd gateway to instance 2023-05-05 22:04:57 +02:00
bitfl0wer 00aa998ad0 remove redundant code 2023-05-05 22:00:37 +02:00
bitfl0wer e41563b101 start re-doing send() 2023-05-05 21:53:23 +02:00
bitfl0wer 9b5caf6392 Add DiscordFileAttachment, change visibilities 2023-05-05 21:53:00 +02:00
bitfl0wer abd555dfac Add MessageSendSchema 2023-05-05 21:52:27 +02:00
kozabrada123 7ac4da8482 Fix encoding wrong 2023-05-05 20:58:00 +02:00
kozabrada123 ab4c20562c Remove the dumb test stuff I left in 2023-05-05 20:28:47 +02:00
kozabrada123 47c38c5541 Give websocket a send and receive channel 2023-05-05 20:26:51 +02:00
kozabrada123 6a99129fe7 Add temp debug, remove unused token 2023-05-05 19:42:31 +02:00
kozabrada123 f6c9d5a807 Experimental sending to gateway 2023-05-05 19:23:57 +02:00
kozabrada123 85d79bb304 Experimental heartbeats 2023-05-05 18:38:04 +02:00
kozabrada123 23472d01d9 Update integers on some types 2023-05-05 18:37:52 +02:00
kozabrada123 ec2030794d Add gateway Ready event 2023-05-05 16:08:12 +02:00
kozabrada123 2dda6f767e Update data for existing events 2023-05-05 15:46:45 +02:00
kozabrada123 28f3312cac No need to serialize this 2023-05-05 15:39:11 +02:00
bitfl0wer a706341e36 handle attachment-messages seperately 2023-05-05 14:38:37 +02:00
bitfl0wer e4be9d49c2 change name type from String to i16 2023-05-05 14:38:22 +02:00
bitfl0wer 24483f7194 Add multipart feature 2023-05-05 14:38:05 +02:00
bitfl0wer 65480d51e6 Fix counter not being incremented 2023-05-05 14:19:38 +02:00
bitfl0wer 12c6efc72e Change HashMap to Map
Filenames can be non-unique, which could not be accurately represented using a HashMap.
2023-05-05 14:18:59 +02:00
bitfl0wer c90e8b62e8 Add new() DiscordFileAttachment 2023-05-05 14:16:09 +02:00
Flori 6e4a2ead6d Merge pull request #28 from polyphony-chat/feature/sending-messages
Rename File to DiscordFileAttachment, work on that
2023-05-04 23:01:11 +02:00
bitfl0wer d1f44aace3 Rename File to DiscordFileAttachment, work on that 2023-05-04 23:00:48 +02:00
kozabrada123 0ff3a21423 Add basic event receiving 2023-05-04 20:57:45 +02:00
kozabrada123 284073deeb Add WebSocketConnection to Gateway 2023-05-04 20:05:33 +02:00
Flori 22373a9a7f Merge pull request #27 from polyphony-chat/feature/sending-messages
End of day: Bring main up to date
2023-05-03 23:28:01 +02:00
bitfl0wer 28778f578f Add bearer auth for message sending 2023-05-03 23:13:12 +02:00
bitfl0wer 8903f494ac Add start of attachments implementation 2023-05-03 23:04:32 +02:00
bitfl0wer 0e9a0c4c3c Remove unused imports 2023-05-03 21:06:01 +02:00
bitfl0wer ef8366e1bd fix build fail by commenting out unused stuff 2023-05-03 21:05:09 +02:00
bitfl0wer 7369bdd59f Merge remote-tracking branch 'origin/feature/sending-messages' 2023-05-03 17:39:57 +02:00
bitfl0wer c4b15b5bf0 change reference to be mutable 2023-05-03 17:29:32 +02:00
bitfl0wer 7560361bf5 add send_message to user 2023-05-03 17:29:20 +02:00
bitfl0wer 5d545d7fc9 Add get_as_mut to Limits 2023-05-03 17:12:32 +02:00
bitfl0wer a0df444f87 Remove blank line 2023-05-03 17:12:23 +02:00
bitfl0wer fc9032c038 change visibilities to pub 2023-05-03 17:11:48 +02:00