webfuncs

package
v1.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoRoleHandler

func AutoRoleHandler(c *gin.Context, session *discordgo.Session, conf *oauth2.Config)

func CallbackHandler

func CallbackHandler(c *gin.Context, state string, conf *oauth2.Config)

func GuildHandler

func GuildHandler(c *gin.Context, session *discordgo.Session, conf *oauth2.Config, cli *discordgo.User)

func InviteHandler

func InviteHandler(c *gin.Context, cli *discordgo.User)

func LeaveChannelHandler

func LeaveChannelHandler(c *gin.Context, session *discordgo.Session, conf *oauth2.Config)

func LogHandler

func LogHandler(c *gin.Context, session *discordgo.Session, conf *oauth2.Config)

func LoginHandler

func LoginHandler(c *gin.Context, conf *oauth2.Config, state string)

func LogoutHandler

func LogoutHandler(c *gin.Context)

func MainHandler

func MainHandler(c *gin.Context, cli *discordgo.User, conf *oauth2.Config, session *discordgo.Session)

func NoRouteHandler

func NoRouteHandler(c *gin.Context)

func ResetAutoRoleHandler

func ResetAutoRoleHandler(c *gin.Context, session *discordgo.Session, conf *oauth2.Config)

func ResetLeaveChannelHandler

func ResetLeaveChannelHandler(c *gin.Context, session *discordgo.Session, conf *oauth2.Config)

func ResetLeaveMessageHandler

func ResetLeaveMessageHandler(c *gin.Context, session *discordgo.Session, conf *oauth2.Config)

func ResetLogHandler

func ResetLogHandler(c *gin.Context, session *discordgo.Session, conf *oauth2.Config)

func ResetWelcomeChannelHandler

func ResetWelcomeChannelHandler(c *gin.Context, session *discordgo.Session, conf *oauth2.Config)

func ResetWelcomeMessageHandler

func ResetWelcomeMessageHandler(c *gin.Context, session *discordgo.Session, conf *oauth2.Config)

func SupportHandler

func SupportHandler(c *gin.Context)

func WelcomeChannelHandler

func WelcomeChannelHandler(c *gin.Context, session *discordgo.Session, conf *oauth2.Config)

Types

type ScanSQLData

type ScanSQLData struct {
	WelcomeChannelID string
	LeaveChannelID   string
	RoleID           string
	WelcomeMessage   string
	LeaveMessage     string
	LogID            string
}

ScanSQLData structure to use on web.go

type Settings

type Settings struct {
	WelcomeChannelID string
	LeaveChannelID   string
	RoleID           string
	WelcomeMessage   string
	LeaveMessage     string
	LogID            string
}

Settings structure to use on guild.html

type UserInfo

type UserInfo struct {
	Name          string
	ID            string
	AvatarURL     string
	Discriminator string
	Bot           bool
}

UserInfo structure to use on index.html

Jump to

Keyboard shortcuts

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