dgodiscordservice

package
v0.0.0-...-6ac3518 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service implements discord.Service interface backed by discordgo lib.

func New

func New(sys *system.System, store discord.Store) *Service

New creates a new Service and prepares it to Start.

func (*Service) GetStore

func (s *Service) GetStore() discord.Store

GetStore returns discord.Store.

func (*Service) GuildAddUser

func (s *Service) GuildAddUser(u *discord.User)

GuildAddUser adds user to a guild.

func (*Service) RefreshTokens

func (s *Service) RefreshTokens()

RefreshTokens gets and stores fresh access tokens.

func (*Service) Start

func (s *Service) Start()

Start starts the Service.

func (*Service) Stop

func (s *Service) Stop()

Stop stops the Service.

func (*Service) ValidateUsers

func (s *Service) ValidateUsers()

ValidateUsers keeps user records up to date, sets proper nicknames in guild, deletes users from guild if they don't have access to discord service.

Jump to

Keyboard shortcuts

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