jakevoytko / crbot

A Discord bot that acts as a call-and-response bot. It reacts to ? commands with the learned response.
MIT License
7 stars 3 forks source link

migrate to aetimmes/discordgo for thread support #62

Closed aetimmes closed 2 years ago

aetimmes commented 2 years ago

https://github.com/bwmarrin/discordgo has had a PR for Discord v8/v9 API support pending for a while now. I merged that PR into https://github.com/aetimmes/discordgo (updates here: https://github.com/aetimmes/discordgo/pull/1).

This PR migrates from bwmarrin/discordgo to aetimmes/discordgo, which gets us Discord API v8/v9 support (notably, the ability for crbot to respond in threads).

From internal testing, no actual crbot code changes are required - by updating to the new module, the bot simply knows how to read threads, which was a pleasant surprise.

The actual content of this PR amounts to s/bwmarrin/aetimmes/g and the results of the ensuing go mod tidy and associated bazel/gazelle commands.