discordgo

package
v0.0.0-...-981bbdb Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package discordgo acts as a fascade to the external package discordgo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordSession

type DiscordSession struct {
	Session *_discordgo.Session
}

DiscordSession is a discordgo implementation of the emotebox.DiscordSession interface

func New

func New(token string) (*DiscordSession, error)

New constructs a new DiscordSession that is authenticated

func (*DiscordSession) CurrentUser

func (s *DiscordSession) CurrentUser() (*emotebox.User, error)

func (*DiscordSession) GetAvatar

func (s *DiscordSession) GetAvatar(userId string, size string) (*url.URL, error)

func (*DiscordSession) GetUser

func (s *DiscordSession) GetUser(userId string) (*emotebox.User, error)

type UserService

type UserService struct {
	Session emotebox.DiscordSession
}

func (*UserService) GetAvatar

func (s *UserService) GetAvatar(userId string, size string) (*url.URL, error)

func (*UserService) GetCurrentUser

func (s *UserService) GetCurrentUser() (*emotebox.User, error)

Jump to

Keyboard shortcuts

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