Skip to content
/ httpcord Public

Simply go project for discord http interactions

Notifications You must be signed in to change notification settings

liy77/httpcord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github tag CodeFactor DeepSource made-with-Go

HttpCord Go

Simply go project for discord http interactions

Inspired by Discord Interactions, Discord.JS And DiscordGo

Getting Started

Installation

go get github.com/denkylabs/discord-api-types-go@v0.0.6

Example

package main

import "github.com/JustAWaifuHunter/httpcord"

func main() {
	connection := httpcord.NewConnection(httpcord.ConnectionOptions{
		HttpConnection: httpcord.FastHttpConnection,
		PublicKey: "Your Discord Application Public Key Here",
	})

	connection.AddInteractionHandler(func(ctx httpcord.ConnectionContext) {
		ctx.ReplyInteraction(&httpcord.InteractionCallbackData{
			Content: "Hello World",
		})
	})

	connection.Connect(":8080")
}

About

Simply go project for discord http interactions

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages