discord_gleam

discord_gleam

•  •  10 updates •  10h 37m

And discord API library written in the gleam programming language

By Cyteon

Timeline

Cyteon
Cyteon 29m spent working 304d ago

Added always reconnecting on disconnect, unless it was less than 1 minute since the connection started. Cause then the disconnect will usally be due to something you are not supposed to reconnect for

Cyteon
Cyteon 1h spent working 306d ago

Implemented reconnecting to the socket, with the sessionid, and gatewayresume_url, provided by discord. Reconnecting is currently only implemented for op code 7 (reconnect)

Update attachment
Cyteon
Cyteon 55m spent working 307d ago

Implemented the MESSAGE_UPDATE event, so you can listen for edits

Update attachment
Cyteon
Cyteon 1h spent working 308d ago

I have been continuing work towards a good v1 release. I have fixed all my bad error handling, replacing it with proper error handling. And also fixed every example (ss is just example of 1), every was broken due to either my new error handling, or gleam stdlib changing.

Update attachment
Cyteon
Cyteon 42m spent working 313d ago

Added the ability to edit messages, along with making send_message() output a result with either an err or data about the sent msg, like ID

Update attachment
Cyteon
Cyteon 2h spent working 318d ago

Spent a hella long time implementing options for slash cmds, was NOT fun. But now it works, and supports the diffrent slash cmd types (some might break i think but i just added all)

Update attachment
Cyteon
Cyteon 13m spent working 319d ago

Add a function to create a DM channel. This is pretty useful for functions where i havent implemented a function for direct messages

Update attachment
Cyteon
Cyteon 48m spent working 319d ago
Cyteon
Cyteon 21m spent working 320d ago

Add sending direct messages with send_direct_message().
(docs: https://hexdocs.pm/discord_gleam/discord_gleam.html#send_direct_message)

Update attachment
Cyteon
Cyteon 20m spent working 320d ago

Today i added a bunch of documentation for some functions, i will gradually add more

Update attachment