Chris Rhodes e37343d4d4 Update examples to use Bot tokens. 8 anni fa
..
localfile e37343d4d4 Update examples to use Bot tokens. 8 anni fa
url e37343d4d4 Update examples to use Bot tokens. 8 anni fa
README.md 7ff5f4b043 Removed MESSAGE_CREATE event handler and opening of websocket infavour 8 anni fa

README.md

Avatar Examples

These example demonstrates how to utilize DiscordGo to change the account avatar using local files and urls.

Build

This assumes you already have a working Go environment setup and that DiscordGo is correctly installed on your system. Change directory into the example you wish to build.

cd $GOPATH/src/github.com/bwmarrin/discordgo/examples/avatar/localfile
cd $GOPATH/src/github.com/bwmarrin/discordgo/examples/avatar/url
go build

Usage

Please refer to the README.md inside the example folder for usage of that particular example.

Note

Please be aware that you will need to login with the account you just changed avatar of to visually see the change. Alternatively you could query the avatar from dicord servers to make sure the change has indeed occured.