Releases: auttaja/gommand
Releases · auttaja/gommand
Gommand
Gommand
Gommand
- Add support for embed menu and embed paginator lifetimes.
- Change how parsing for custom commands works to allow for it to be done in a much more granular way. This is a breaking change (the parser is directly passed through rather than a string).
- Add message bulk delete handler, make member attribute optional on deleted messages. This is a breaking change if you use a custom message cache adapter (see #6).
- Add GuildTransformer.
- Fix some bugs with global emojis in embed menus.
Thanks @Jack073 for your help and contributions with this release. 👍
Gommand
Gommand
- Change
DeletedMessageHandler
toMessageCacheHandler
andCallback
toDeletedCallback
. This is a breaking change. - Add
UpdatedCallback
toMessageCacheHandler
to allow for callbacks on message updates. - Updated the message cache handler to add an
Update(ChannelID, MessageID disgord.Snowflake, Message *disgord.Message) (old *disgord.Message)
function, which allows the cache to be kept up to date and corrected as messages are edited (previously if a message was edited the cache would still represent the message as when it was sent). If you use a customMessageCacheStorageAdapter
then this will be a breaking change as it now requires the Update method. - Add an
IgnoreBots
field to theMessageCacheHandler
struct to allow users not to cache bots messages if they choose.
Thanks to @Jack073 for help with this release.
Gommand
Gommand
Gommand
- Add the
InitialPage
(used to set the page which will show) andNoButtonTextContent
(the text which will be sent with the embed in the event that buttons could not be added) arguments toEmbedPaginator
. This is a breaking change. - Add the ability for the help command to work if the buttons could not be created.
Gommand
Gommand
- Add
WaitManager
into the Gommand context.WaitManager
containsWaitFor____
functions for every disgord event type and allows you to wait for each event with the check function you specify and get it returned to you.- Due to this,
WaitForMessage
is still within the Gommand context, but it requires acontext.Context
as the first parameter now. This is a breaking change.
- Due to this,
- Make the message URL transformer support various different Discord URL's (thanks to @Jack073 for this contribution).