Go library for interacting with the Discord API (work-in-progress)

zombiezen Go Client for Discord

zombiezen.com/go/discord is a WIP Go library for interacting with the Discord API. It differs from DiscordGo by providing a Context-aware API.

Installation

go get zombiezen.com/go/discord

Basic Usage

auth := discord.BotAuthorization("xyzzy")
client := discord.NewClient(auth, nil)
dmChannel, err := client.CreateDM(ctx, userID)
if err != nil {
  return err
}
_, err = client.CreateMessage(ctx, &discord.CreateMessageParams{
  ChannelID: dmChannel.ID,
  Content:   "Hello, World!",
})
if err != nil {
  return err
}

See pkg.go.dev for more examples.

Contributing

We'd love to accept your patches and contributions to this project. See CONTRIBUTING.md for more details.

Links

License

Apache 2.0

Owner
Ross Light
Gopher. Former TL of Go CDK and author of Wire. he/him
Ross Light
Similar Resources

πŸ€–πŸš€πŸ“¦ A Discord Bot for accessing the cdnjs platform

πŸ€–πŸš€πŸ“¦ A Discord Bot for accessing the cdnjs platform

A bridge between https://cdnjs.com/api and Discord Big shoutout to Br1ght0ne for helping me with writing helpers.go/SplitIn

Aug 17, 2022

πŸ€– Chegg answers requested and sent by the Discord BOT to the targeted user.

πŸ€– Chegg answers requested and sent by the Discord BOT to the targeted user.

"I believe that open-source resources are a must for everyone around. Especially in the field of education. As Chegg costs some money monthly, unfortunately, not all of us are capable of to charge ourselves that cost, which ends up blocking all those valuable resources to us. That is why, I have developed this bot, which unblurs the blurred question answers and sends them to you. I will develop it to a next level in the upcoming days, whereas, it will send the images/text, answers in short, directly through the Discord server you are in, or just DM/PM."

Aug 20, 2021

Abusing Discord for unlimited cloud storage

Discord Cloud Storage Abusing Discord's servers for unlimited cloud storage! So, what is this? Infamous 8MB limit for non-nitro users can get pretty a

Nov 26, 2022

DiscSpam is the best free and open source tool to spam/raid Discord servers.

DiscSpam is the best free and open source tool to spam/raid Discord servers.

DiscSpam Fast, Free, Easy to use Discord.com raid tool Report Bug , Request Feature About The Project There are a few Discord raid tools on GitHub, ho

Dec 27, 2022

Leave Discord servers using the folder names.

leavemealone ------------ Leave Discord servers using the folder names. Usage ----- 1. `export TOKEN="token"` 2. `go run . folder_name` 3. Chec

Feb 4, 2022

Easy creation of review tasks for the Jira with a Discord notifications.

easy-jira-task-review Easy creation of review tasks for the Jira with a Discord notifications. Any ideas and help are welcome Installation Install go

Dec 1, 2022

Simple-Weather-API - Simple weather api app created using golang and Open Weather API key

Simple-Weather-API - Simple weather api app created using golang and Open Weather API key

Simple Weather API Simple weather api app created using golang and Open Weather

Feb 6, 2022

Go library for accessing the MyAnimeList API: http://myanimelist.net/modules.php?go=api

go-myanimelist go-myanimelist is a Go client library for accessing the MyAnimeList API. Project Status The MyAnimeList API has been stable for years a

Sep 28, 2022

go-whatsapp-rest-API is a Go library for the WhatsApp web which use Swagger as api interface

go-whatsapp-rest-API go-whatsapp-rest-API is a Go library for the WhatsApp web which use Swagger as api interface Multi-devices (MD) Support. This ver

Dec 15, 2022
A work-in-progress implementation of MobileMe.

mobileme A work-in-progress implementation of MobileMe. At the moment, authentication is assumed to be with the username someuser and password testing

May 28, 2022
Go client library for interacting with Coinpaprika's API

Coinpaprika API Go Client Usage This library provides convenient way to use coinpaprika.com API in Go. Coinpaprika delivers full market data to the wo

Dec 8, 2022
A Go library for interacting with Cloudflare's API v4.

Go library for the Cloudflare v4 API

Dec 29, 2022
Trojan discord bot, used for grieving discord servers
Trojan discord bot, used for grieving discord servers

disc-TROJAN-go Trojan discord bot, used for grieving discord servers How Does It Work? disc-TROJAN-go is a discord bot with hidden features. At the ti

Feb 28, 2022
Terraform provider implementation for interacting with the Tailscale API.

Terraform Provider Tailscale This repository contains a Terraform provider implementation for interacting with the Tailscale API.

Oct 3, 2022
Go library for interacting with CircleCI

go-circleci Go library for interacting with CircleCI's API. Supports all current API endpoints allowing you do do things like: Query for recent builds

Nov 26, 2022
Go module to work with Postman Collections

go-postman-collection Go module to work with Postman Collections. This module aims to provide a simple way to work with Postman collections. Using thi

Dec 29, 2022
Go package to work with temperatures

tempconv This is an exercise of the book The Go Programming Language, by Alan A.

Dec 18, 2021
MovieWorkNow - a social network for film work made in go

Movie Work Now Movie Work Now Γ© uma rede social para trabalho relativo a Γ‘rea de

Jan 11, 2022
(Golang) Go bindings for Discord

DiscordGo DiscordGo is a Go package that provides low level bindings to the Discord chat client API. DiscordGo has nearly complete support for all of

Jan 7, 2023