Goscord brand

A powerful Discord API in Golang.

What is Goscord?

Goscord is a Discord bot creation API written in the Go programming language. It offers a high level API rich in possibilities and which evolves at the same pace as Discord.

Use plain Go

Goscord is written entirely in Golang, no C dependencies, no more compilation issues!

Fast development time

Goscord is easy to use which allows you to develop Discord applications quickly and easily!

Speedy execution

Create ultra-fast Discord applications with Golang's speed and Goscord's optimization!

Active development

We are actively developing Goscord to add all the necessary content, we are reactive to updates of the Discord API.

How to Set Up?

You can use the Goscord package by copying this:

That's it, now you can copy the following example and start creating your Discord bot! You can also discover more possibilities on our documentation.

See documentation

Join our Discord community to connect with other Goscord users and developers. Click the Discord button below to join our server and get help from our friendly members.

Join our Discord
package main

import (
    "fmt"

    "github.com/Goscord/goscord"
    "github.com/Goscord/goscord/discord"
    "github.com/Goscord/goscord/goscord/gateway"
    "github.com/Goscord/goscord/goscord/gateway/event"
)

var client *gateway.Session

func main() {
    fmt.Println("Starting...")

    client := goscord.New(&gateway.Options{
        Token:   "token",
        Intents: gateway.IntentGuildMessages,
    })

    client.On(event.EventReady, func() {
        fmt.Println("Logged in as " + client.Me().Tag())
    })

    client.On(event.EventMessageCreate, func(msg *discord.Message) {
        if msg.Content == "ping" {
            client.Channel.SendMessage(msg.ChannelId, "Pong ! 🏓")
        }
    })

    client.Login()

    select {}
}
triangle shape

Want some Goscord stats?

74 GitHub stars

9 Downloads

triangle shape
Bluzzi profile picture

Bluzzi

Web Developer

szeroki profile picture

szeroki

API Developer

Onirez profile picture

Onirez

Web Designer