discord

package
v1.9.10 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package discord contains Discord-related services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchGuild

func FetchGuild(gid string) *discordgo.Guild

FetchGuild fetches a guild from an ID.

func FetchGuildSession

func FetchGuildSession(gid string) (*discordgo.Session, error)

FetchGuildSession fetches a session containing a guild from an ID, useful for shard scenario.

func FetchUser

func FetchUser(uid string) (*discordgo.User, error)

FetchUser fetches a user from an ID.

func Initialize

func Initialize() error

Initialize early initializes Discord-related functionalities.

func LateInitialize

func LateInitialize() error

LateInitialize late initializes Discord-related features.

func MakeSessions

func MakeSessions() error

MakeSessions opens all sessions of shards.

func Serve

func Serve()

Serve serves Discord-related stuff.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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