Version: v0.13.0 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2016 License: BSD-3-Clause Imports: 6 Imported by: 0


Avatar Local File Example ====

This example demonstrates how to utilize DiscordGo to change the account avatar using a local file inside the current working directory.


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

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


Please place the file you wish to use as an avatar inside the directory named as avatar.jpg. The filename is not important if you supply it via the commandline flag -f when starting the application.

./localfile --help
Usage of ./ocalfile:
  -e string
        Account Email
  -p string
        Account Password
  -t string
        Account Token
  -f string
  		Avatar File Name.

For example to start application with Token and a non-default avatar:

./localfile -t "YOUR_BOT_TOKEN" -f "./pathtoavatar.jpg"


The Go Gopher

There is no documentation for this package.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL