Skip to content

A package that provides some nice utils for discordgo

License

Notifications You must be signed in to change notification settings

ShadiestGoat/discutils

Repository files navigation

Discutils

Go Reference Go Report License

A package that provides some nice utils for discordgo.

Features

Events

This package provides some wrappers for events. Several places can register a handler. The advantage of this over the integrated solution is that these handlers can prevent further handlers from starting.

Commands

Commands are handled a bit differentially - they are parsed into an argument -> value map before being passed down to the command handler. The same is done for modals, autocomplete, etc.

This package (or rather, the events sub-package) also provides utils for registering commands both locally and to discord.

Interactions

There are abstractions for interactions - just some utils I find useful to work with. Check docs for those.

Getters

There are getters for channels, messages and users - the idea being to fetch from cache (state) first, and if that fails, fetch from the api.

How to use

go get -u github.com/shadiestgoat/discutils

Then, when you're initializing your project, remember to use InitEmbed() to customize same basics

About

A package that provides some nice utils for discordgo

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages