بدون توضیح

Bruce Marriner 5b5c678d6c Added link to Discord Chat to README. 9 سال پیش
example 478620480c Moved examples into individual folders to make go test and travisCI happy. 9 سال پیش
.travis.yml 2af61ea2c5 First commit of Travis CI file 9 سال پیش
LICENSE bc323b57a1 Initial commit 9 سال پیش
README.md 5b5c678d6c Added link to Discord Chat to README. 9 سال پیش
discord.go 1d06c4a3b8 Added helper func New() which greatly simplifies creating a new Discord session. 9 سال پیش
endpoints.go 35e3966b91 Reworded top comment 9 سال پیش
restapi.go dd4aef7263 Added AutoMention option to parse MessageSend for any <@ID> tags. 9 سال پیش
structs.go d9a9a765d8 Removed Cache variable from Session, as it's not used currently. 9 سال پیش
util.go 35e3966b91 Reworded top comment 9 سال پیش
voice.go 106c69f28a Added VoiceReady support to voice 9 سال پیش
wsapi.go f402265fd7 OnReady event will be handled if no callback is set by user. README updated. 9 سال پیش

README.md

DiscordGo provides low level bindings for Discord in the Go Programming Language (Golang).

  • See dgVoice for experimental voice support.

Join #go_discordgo Discord API channel on Discord for support.

GoDoc Go Walker Go report Build Status


Usage Examples

See the example sub-folder for examples. Each example accepts a username and password as a CLI argument when run.

Documentation

NOTICE : This library and the Discord API are unfinished. Because of that there may be major changes to library functions, constants, and structures.

  • GoDoc
  • Go Walker
  • Hand crafted documentation coming eventually.

What Works

Current package provides a low level direct mapping to the majority of Discord REST and Websock API.

  • Login/Logout
  • Open/Close Websocket and listen for events.
  • Accept/Create/Delete Invites
  • Get User details (Name, ID, Settings, etc)
  • List/Create User Channels (Private Message Channels)
  • List/Create Guilds
  • List/Create Guild Channels
  • List Guild Members
  • Receive/Send Messages to Channels

What's Unfinished

  • Make changes as needed to pass GoLint, GoVet, GoCyclo, etc. (goreportcard.com)
  • Editing User Profile settings
  • Permissions related functions.
  • Functions for Maintenance Status
  • Finish Voice support.
  • Add a higher level interface with user friendly helper functions.

Other Discord APIs

Go: gdraynz/go-discord, Xackery/discord, Nerketur/discordapi

.NET: RogueException/Discord.Net, Luigifan/DiscordSharp

Java: nerd/Discord4J

Node.js: izy521/discord.io, hydrabolt/discord.js, qeled/discordie,

PHP: Cleanse/discord-hypertext, teamreflex/DiscordPHP

Python: Rapptz/discord.py

Ruby: meew0/discordrb

Scala: eaceaser/discord-akka

Rust: SpaceManiac/discord-rs