discord

package
v0.0.0-...-71a3f77 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	S      *discordgo.Session
	Config types.Config
	// contains filtered or unexported fields
}

func New

func New(s *discordgo.Session, c types.Config) (d *Session)

func (*Session) ChannelFileSend

func (s *Session) ChannelFileSend(channelID string, name string, r io.Reader)

ChannelFileSend is a wrapper in case we need to block haram things in the future

func (*Session) ChannelMessageSend

func (s *Session) ChannelMessageSend(channelID string, content string)

ChannelMessageSend filters out everyone and here mentions

func (*Session) ChannelMessageSendEmbed

func (s *Session) ChannelMessageSendEmbed(channelID string, content *discordgo.MessageEmbed)

ChannelMessageSendEmbed filters out everyone and here mentions

func (*Session) GetCurrentChannelMessageFrequency

func (s *Session) GetCurrentChannelMessageFrequency(channelID string) (freq float64, err error)

func (*Session) GetUserFromName

func (s *Session) GetUserFromName(name string) (user discordgo.Member, exists bool)

func (*Session) MemberByID

func (s *Session) MemberByID(id string) (discordgo.Member, bool)

func (*Session) Members

func (s *Session) Members() ([]*discordgo.Member, time.Time)

func (*Session) RefreshMembers

func (s *Session) RefreshMembers() error

Jump to

Keyboard shortcuts

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