mocks

package
v0.0.0-...-553821e Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MIT Imports: 19 Imported by: 0

README

mocks

This directory contains automatically generated mocks for service interfaces used to unit test services.

Feel free to take a look at the *_test.go files in the services to see these mocks in action. For example, you can take a look into the test cases of the report service.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigProvider

type ConfigProvider struct {
	mock.Mock
}

ConfigProvider is an autogenerated mock type for the Provider type

func NewConfigProvider

func NewConfigProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConfigProvider

NewConfigProvider creates a new instance of ConfigProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ConfigProvider) Config

func (_m *ConfigProvider) Config() *models.Config

Config provides a mock function with given fields:

func (*ConfigProvider) Parse

func (_m *ConfigProvider) Parse() error

Parse provides a mock function with given fields:

type Database

type Database struct {
	mock.Mock
}

Database is an autogenerated mock type for the Database type

func NewDatabase

func NewDatabase(t interface {
	mock.TestingT
	Cleanup(func())
}) *Database

NewDatabase creates a new instance of Database. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Database) AddBackup

func (_m *Database) AddBackup(guildID string, fileID string) error

AddBackup provides a mock function with given fields: guildID, fileID

func (*Database) AddGuildLogEntry

func (_m *Database) AddGuildLogEntry(entry models.GuildLogEntry) error

AddGuildLogEntry provides a mock function with given fields: entry

func (*Database) AddKarmaBlockList

func (_m *Database) AddKarmaBlockList(guildID string, userID string) error

AddKarmaBlockList provides a mock function with given fields: guildID, userID

func (*Database) AddOrUpdateKarmaRule

func (_m *Database) AddOrUpdateKarmaRule(rule models.KarmaRule) error

AddOrUpdateKarmaRule provides a mock function with given fields: rule

func (*Database) AddReport

func (_m *Database) AddReport(rep models.Report) error

AddReport provides a mock function with given fields: rep

func (*Database) AddRoleSelects

func (_m *Database) AddRoleSelects(v []models.RoleSelect) error

AddRoleSelects provides a mock function with given fields: v

func (*Database) AddTag

func (_m *Database) AddTag(_a0 tag.Tag) error

AddTag provides a mock function with given fields: _a0

func (*Database) AddToAntiraidJoinList

func (_m *Database) AddToAntiraidJoinList(guildID string, userID string, userTag string, accountCreated time.Time) error

AddToAntiraidJoinList provides a mock function with given fields: guildID, userID, userTag, accountCreated

func (*Database) AddUnbanRequest

func (_m *Database) AddUnbanRequest(request models.UnbanRequest) error

AddUnbanRequest provides a mock function with given fields: request

func (*Database) AddUpdateVote

func (_m *Database) AddUpdateVote(votes vote.Vote) error

AddUpdateVote provides a mock function with given fields: votes

func (*Database) AddVerificationQueue

func (_m *Database) AddVerificationQueue(e models.VerificationQueueEntry) error

AddVerificationQueue provides a mock function with given fields: e

func (*Database) CheckKarmaRule

func (_m *Database) CheckKarmaRule(guildID string, checksum string) (bool, error)

CheckKarmaRule provides a mock function with given fields: guildID, checksum

func (*Database) CleanupExpiredRefreshTokens

func (_m *Database) CleanupExpiredRefreshTokens() (int64, error)

CleanupExpiredRefreshTokens provides a mock function with given fields:

func (*Database) Close

func (_m *Database) Close()

Close provides a mock function with given fields:

func (*Database) Connect

func (_m *Database) Connect(credentials ...interface{}) error

Connect provides a mock function with given fields: credentials

func (*Database) DeleteAPIToken

func (_m *Database) DeleteAPIToken(userID string) error

DeleteAPIToken provides a mock function with given fields: userID

func (*Database) DeleteBackup

func (_m *Database) DeleteBackup(guildID string, fileID string) error

DeleteBackup provides a mock function with given fields: guildID, fileID

func (*Database) DeleteBirthday

func (_m *Database) DeleteBirthday(guildID string, userID string) error

DeleteBirthday provides a mock function with given fields: guildID, userID

func (*Database) DeleteLockChan

func (_m *Database) DeleteLockChan(chanID string) error

DeleteLockChan provides a mock function with given fields: chanID

func (*Database) DeleteLogEntries

func (_m *Database) DeleteLogEntries(guildID string) error

DeleteLogEntries provides a mock function with given fields: guildID

func (*Database) DeleteLogEntry

func (_m *Database) DeleteLogEntry(guildID string, id snowflake.ID) error

DeleteLogEntry provides a mock function with given fields: guildID, id

func (*Database) DeleteReport

func (_m *Database) DeleteReport(id snowflake.ID) error

DeleteReport provides a mock function with given fields: id

func (*Database) DeleteTag

func (_m *Database) DeleteTag(id snowflake.ID) error

DeleteTag provides a mock function with given fields: id

func (*Database) DeleteTwitchNotify

func (_m *Database) DeleteTwitchNotify(twitchUserID string, guildID string) error

DeleteTwitchNotify provides a mock function with given fields: twitchUserID, guildID

func (*Database) DeleteVote

func (_m *Database) DeleteVote(voteID string) error

DeleteVote provides a mock function with given fields: voteID

func (*Database) EditTag

func (_m *Database) EditTag(_a0 tag.Tag) error

EditTag provides a mock function with given fields: _a0

func (*Database) ExpireReports

func (_m *Database) ExpireReports(id ...string) error

ExpireReports provides a mock function with given fields: id

func (*Database) FlushAntiraidJoinList

func (_m *Database) FlushAntiraidJoinList(guildID string) error

FlushAntiraidJoinList provides a mock function with given fields: guildID

func (*Database) FlushGuildData

func (_m *Database) FlushGuildData(guildID string) error

FlushGuildData provides a mock function with given fields: guildID

func (*Database) FlushUserData

func (_m *Database) FlushUserData(userID string) (map[string]int, error)

FlushUserData provides a mock function with given fields: userID

func (*Database) FlushVerificationQueue

func (_m *Database) FlushVerificationQueue(guildID string) error

FlushVerificationQueue provides a mock function with given fields: guildID

func (*Database) GetAPIToken

func (_m *Database) GetAPIToken(userID string) (models.APITokenEntry, error)

GetAPIToken provides a mock function with given fields: userID

func (*Database) GetAllTwitchNotifies

func (_m *Database) GetAllTwitchNotifies(twitchUserID string) ([]twitchnotify.DBEntry, error)

GetAllTwitchNotifies provides a mock function with given fields: twitchUserID

func (*Database) GetAntiraidBurst

func (_m *Database) GetAntiraidBurst(guildID string) (int, error)

GetAntiraidBurst provides a mock function with given fields: guildID

func (*Database) GetAntiraidJoinList

func (_m *Database) GetAntiraidJoinList(guildID string) ([]models.JoinLogEntry, error)

GetAntiraidJoinList provides a mock function with given fields: guildID

func (*Database) GetAntiraidRegeneration

func (_m *Database) GetAntiraidRegeneration(guildID string) (int, error)

GetAntiraidRegeneration provides a mock function with given fields: guildID

func (*Database) GetAntiraidState

func (_m *Database) GetAntiraidState(guildID string) (bool, error)

GetAntiraidState provides a mock function with given fields: guildID

func (*Database) GetAntiraidVerification

func (_m *Database) GetAntiraidVerification(guildID string) (bool, error)

GetAntiraidVerification provides a mock function with given fields: guildID

func (*Database) GetBackups

func (_m *Database) GetBackups(guildID string) ([]backupmodels.Entry, error)

GetBackups provides a mock function with given fields: guildID

func (*Database) GetBirthdays

func (_m *Database) GetBirthdays(guildID string) ([]models.Birthday, error)

GetBirthdays provides a mock function with given fields: guildID

func (*Database) GetExpiredReports

func (_m *Database) GetExpiredReports() ([]models.Report, error)

GetExpiredReports provides a mock function with given fields:

func (*Database) GetGuildAPI

func (_m *Database) GetGuildAPI(guildID string) (models.GuildAPISettings, error)

GetGuildAPI provides a mock function with given fields: guildID

func (*Database) GetGuildAutoRole

func (_m *Database) GetGuildAutoRole(guildID string) ([]string, error)

GetGuildAutoRole provides a mock function with given fields: guildID

func (*Database) GetGuildAutoVC

func (_m *Database) GetGuildAutoVC(guildID string) ([]string, error)

GetGuildAutoVC provides a mock function with given fields: guildID

func (*Database) GetGuildBackup

func (_m *Database) GetGuildBackup(guildID string) (bool, error)

GetGuildBackup provides a mock function with given fields: guildID

func (*Database) GetGuildBirthdayChan

func (_m *Database) GetGuildBirthdayChan(guildID string) (string, error)

GetGuildBirthdayChan provides a mock function with given fields: guildID

func (*Database) GetGuildCodeExecEnabled

func (_m *Database) GetGuildCodeExecEnabled(guildID string) (bool, error)

GetGuildCodeExecEnabled provides a mock function with given fields: guildID

func (*Database) GetGuildColorReaction

func (_m *Database) GetGuildColorReaction(guildID string) (bool, error)

GetGuildColorReaction provides a mock function with given fields: guildID

func (*Database) GetGuildGhostpingMsg

func (_m *Database) GetGuildGhostpingMsg(guildID string) (string, error)

GetGuildGhostpingMsg provides a mock function with given fields: guildID

func (*Database) GetGuildInviteBlock

func (_m *Database) GetGuildInviteBlock(guildID string) (string, error)

GetGuildInviteBlock provides a mock function with given fields: guildID

func (*Database) GetGuildJdoodleKey

func (_m *Database) GetGuildJdoodleKey(guildID string) (string, error)

GetGuildJdoodleKey provides a mock function with given fields: guildID

func (*Database) GetGuildJoinMsg

func (_m *Database) GetGuildJoinMsg(guildID string) (string, string, error)

GetGuildJoinMsg provides a mock function with given fields: guildID

func (*Database) GetGuildLeaveMsg

func (_m *Database) GetGuildLeaveMsg(guildID string) (string, string, error)

GetGuildLeaveMsg provides a mock function with given fields: guildID

func (*Database) GetGuildLogDisable

func (_m *Database) GetGuildLogDisable(guildID string) (bool, error)

GetGuildLogDisable provides a mock function with given fields: guildID

func (*Database) GetGuildLogEntries

func (_m *Database) GetGuildLogEntries(guildID string, offset int, limit int, severity models.GuildLogSeverity, ascending bool) ([]models.GuildLogEntry, error)

GetGuildLogEntries provides a mock function with given fields: guildID, offset, limit, severity, ascending

func (*Database) GetGuildLogEntriesCount

func (_m *Database) GetGuildLogEntriesCount(guildID string, severity models.GuildLogSeverity) (int, error)

GetGuildLogEntriesCount provides a mock function with given fields: guildID, severity

func (*Database) GetGuildModLog

func (_m *Database) GetGuildModLog(guildID string) (string, error)

GetGuildModLog provides a mock function with given fields: guildID

func (*Database) GetGuildModNot

func (_m *Database) GetGuildModNot(guildID string) (string, error)

GetGuildModNot provides a mock function with given fields: guildID

func (*Database) GetGuildNotifyRole

func (_m *Database) GetGuildNotifyRole(guildID string) (string, error)

GetGuildNotifyRole provides a mock function with given fields: guildID

func (*Database) GetGuildPermissions

func (_m *Database) GetGuildPermissions(guildID string) (map[string]permissions.PermissionArray, error)

GetGuildPermissions provides a mock function with given fields: guildID

func (*Database) GetGuildPrefix

func (_m *Database) GetGuildPrefix(guildID string) (string, error)

GetGuildPrefix provides a mock function with given fields: guildID

func (*Database) GetGuildTags

func (_m *Database) GetGuildTags(guildID string) ([]tag.Tag, error)

GetGuildTags provides a mock function with given fields: guildID

func (*Database) GetGuildUnbanRequests

func (_m *Database) GetGuildUnbanRequests(guildID string, limit int, offset int) ([]models.UnbanRequest, error)

GetGuildUnbanRequests provides a mock function with given fields: guildID, limit, offset

func (*Database) GetGuildUnbanRequestsCount

func (_m *Database) GetGuildUnbanRequestsCount(guildID string, state *models.UnbanRequestState) (int, error)

GetGuildUnbanRequestsCount provides a mock function with given fields: guildID, state

func (*Database) GetGuildUserUnbanRequests

func (_m *Database) GetGuildUserUnbanRequests(userID string, guildID string) ([]models.UnbanRequest, error)

GetGuildUserUnbanRequests provides a mock function with given fields: userID, guildID

func (*Database) GetGuildVerificationRequired

func (_m *Database) GetGuildVerificationRequired(guildID string) (bool, error)

GetGuildVerificationRequired provides a mock function with given fields: guildID

func (*Database) GetGuildVoiceLog

func (_m *Database) GetGuildVoiceLog(guildID string) (string, error)

GetGuildVoiceLog provides a mock function with given fields: guildID

func (*Database) GetGuildVoiceLogIgnores

func (_m *Database) GetGuildVoiceLogIgnores(guildID string) ([]string, error)

GetGuildVoiceLogIgnores provides a mock function with given fields: guildID

func (*Database) GetGuilds

func (_m *Database) GetGuilds() ([]string, error)

GetGuilds provides a mock function with given fields:

func (*Database) GetKarma

func (_m *Database) GetKarma(userID string, guildID string) (int, error)

GetKarma provides a mock function with given fields: userID, guildID

func (*Database) GetKarmaBlockList

func (_m *Database) GetKarmaBlockList(guildID string) ([]string, error)

GetKarmaBlockList provides a mock function with given fields: guildID

func (*Database) GetKarmaEmotes

func (_m *Database) GetKarmaEmotes(guildID string) (string, string, error)

GetKarmaEmotes provides a mock function with given fields: guildID

func (*Database) GetKarmaGuild

func (_m *Database) GetKarmaGuild(guildID string, limit int) ([]models.GuildKarma, error)

GetKarmaGuild provides a mock function with given fields: guildID, limit

func (*Database) GetKarmaPenalty

func (_m *Database) GetKarmaPenalty(guildID string) (bool, error)

GetKarmaPenalty provides a mock function with given fields: guildID

func (*Database) GetKarmaRules

func (_m *Database) GetKarmaRules(guildID string) ([]models.KarmaRule, error)

GetKarmaRules provides a mock function with given fields: guildID

func (*Database) GetKarmaState

func (_m *Database) GetKarmaState(guildID string) (bool, error)

GetKarmaState provides a mock function with given fields: guildID

func (*Database) GetKarmaSum

func (_m *Database) GetKarmaSum(userID string) (int, error)

GetKarmaSum provides a mock function with given fields: userID

func (*Database) GetKarmaTokens

func (_m *Database) GetKarmaTokens(guildID string) (int, error)

GetKarmaTokens provides a mock function with given fields: guildID

func (*Database) GetLockChan

func (_m *Database) GetLockChan(chanID string) (string, string, string, error)

GetLockChan provides a mock function with given fields: chanID

func (*Database) GetLockChannels

func (_m *Database) GetLockChannels(guildID string) ([]string, error)

GetLockChannels provides a mock function with given fields: guildID

func (*Database) GetReport

func (_m *Database) GetReport(id snowflake.ID) (models.Report, error)

GetReport provides a mock function with given fields: id

func (*Database) GetReportsFiltered

func (_m *Database) GetReportsFiltered(guildID string, memberID string, repType models.ReportType, offset int, limit int) ([]models.Report, error)

GetReportsFiltered provides a mock function with given fields: guildID, memberID, repType, offset, limit

func (*Database) GetReportsFilteredCount

func (_m *Database) GetReportsFilteredCount(guildID string, memberID string, repType int) (int, error)

GetReportsFilteredCount provides a mock function with given fields: guildID, memberID, repType

func (*Database) GetReportsGuild

func (_m *Database) GetReportsGuild(guildID string, offset int, limit int) ([]models.Report, error)

GetReportsGuild provides a mock function with given fields: guildID, offset, limit

func (*Database) GetReportsGuildCount

func (_m *Database) GetReportsGuildCount(guildID string) (int, error)

GetReportsGuildCount provides a mock function with given fields: guildID

func (*Database) GetRoleSelects

func (_m *Database) GetRoleSelects() ([]models.RoleSelect, error)

GetRoleSelects provides a mock function with given fields:

func (*Database) GetSetting

func (_m *Database) GetSetting(setting string) (string, error)

GetSetting provides a mock function with given fields: setting

func (*Database) GetStarboardConfig

func (_m *Database) GetStarboardConfig(guildID string) (models.StarboardConfig, error)

GetStarboardConfig provides a mock function with given fields: guildID

func (*Database) GetStarboardEntries

func (_m *Database) GetStarboardEntries(guildID string, sortBy models.StarboardSortBy, limit int, offset int) ([]models.StarboardEntry, error)

GetStarboardEntries provides a mock function with given fields: guildID, sortBy, limit, offset

func (*Database) GetStarboardEntriesCount

func (_m *Database) GetStarboardEntriesCount(guildID string) (int, error)

GetStarboardEntriesCount provides a mock function with given fields: guildID

func (*Database) GetStarboardEntry

func (_m *Database) GetStarboardEntry(messageID string) (models.StarboardEntry, error)

GetStarboardEntry provides a mock function with given fields: messageID

func (*Database) GetTagByID

func (_m *Database) GetTagByID(id snowflake.ID) (tag.Tag, error)

GetTagByID provides a mock function with given fields: id

func (*Database) GetTagByIdent

func (_m *Database) GetTagByIdent(ident string, guildID string) (tag.Tag, error)

GetTagByIdent provides a mock function with given fields: ident, guildID

func (*Database) GetTwitchNotify

func (_m *Database) GetTwitchNotify(twitchUserID string, guildID string) (twitchnotify.DBEntry, error)

GetTwitchNotify provides a mock function with given fields: twitchUserID, guildID

func (*Database) GetUnbanRequest

func (_m *Database) GetUnbanRequest(id string) (models.UnbanRequest, error)

GetUnbanRequest provides a mock function with given fields: id

func (*Database) GetUserByRefreshToken

func (_m *Database) GetUserByRefreshToken(token string) (string, time.Time, error)

GetUserByRefreshToken provides a mock function with given fields: token

func (*Database) GetUserOTAEnabled

func (_m *Database) GetUserOTAEnabled(userID string) (bool, error)

GetUserOTAEnabled provides a mock function with given fields: userID

func (*Database) GetUserStarboardOptout

func (_m *Database) GetUserStarboardOptout(userID string) (bool, error)

GetUserStarboardOptout provides a mock function with given fields: userID

func (*Database) GetUserVerified

func (_m *Database) GetUserVerified(userID string) (bool, error)

GetUserVerified provides a mock function with given fields: userID

func (*Database) GetVerificationQueue

func (_m *Database) GetVerificationQueue(guildID string, userID string) ([]models.VerificationQueueEntry, error)

GetVerificationQueue provides a mock function with given fields: guildID, userID

func (*Database) GetVotes

func (_m *Database) GetVotes() (map[string]vote.Vote, error)

GetVotes provides a mock function with given fields:

func (*Database) IsGuildVoiceLogIgnored

func (_m *Database) IsGuildVoiceLogIgnored(guildID string, channelID string) (bool, error)

IsGuildVoiceLogIgnored provides a mock function with given fields: guildID, channelID

func (*Database) IsKarmaBlockListed

func (_m *Database) IsKarmaBlockListed(guildID string, userID string) (bool, error)

IsKarmaBlockListed provides a mock function with given fields: guildID, userID

func (*Database) RemoveAntiraidJoinList

func (_m *Database) RemoveAntiraidJoinList(guildID string, userID string) error

RemoveAntiraidJoinList provides a mock function with given fields: guildID, userID

func (*Database) RemoveGuildVoiceLogIgnore

func (_m *Database) RemoveGuildVoiceLogIgnore(guildID string, channelID string) error

RemoveGuildVoiceLogIgnore provides a mock function with given fields: guildID, channelID

func (*Database) RemoveKarmaBlockList

func (_m *Database) RemoveKarmaBlockList(guildID string, userID string) error

RemoveKarmaBlockList provides a mock function with given fields: guildID, userID

func (*Database) RemoveKarmaRule

func (_m *Database) RemoveKarmaRule(guildID string, id snowflake.ID) error

RemoveKarmaRule provides a mock function with given fields: guildID, id

func (*Database) RemoveRoleSelect

func (_m *Database) RemoveRoleSelect(guildID string, channelID string, messageID string) error

RemoveRoleSelect provides a mock function with given fields: guildID, channelID, messageID

func (*Database) RemoveStarboardEntry

func (_m *Database) RemoveStarboardEntry(msgID string) error

RemoveStarboardEntry provides a mock function with given fields: msgID

func (*Database) RemoveVerificationQueue

func (_m *Database) RemoveVerificationQueue(guildID string, userID string) (bool, error)

RemoveVerificationQueue provides a mock function with given fields: guildID, userID

func (*Database) RevokeUserRefreshToken

func (_m *Database) RevokeUserRefreshToken(userID string) error

RevokeUserRefreshToken provides a mock function with given fields: userID

func (*Database) SetAPIToken

func (_m *Database) SetAPIToken(token models.APITokenEntry) error

SetAPIToken provides a mock function with given fields: token

func (*Database) SetAntiraidBurst

func (_m *Database) SetAntiraidBurst(guildID string, burst int) error

SetAntiraidBurst provides a mock function with given fields: guildID, burst

func (*Database) SetAntiraidRegeneration

func (_m *Database) SetAntiraidRegeneration(guildID string, periodSecs int) error

SetAntiraidRegeneration provides a mock function with given fields: guildID, periodSecs

func (*Database) SetAntiraidState

func (_m *Database) SetAntiraidState(guildID string, state bool) error

SetAntiraidState provides a mock function with given fields: guildID, state

func (*Database) SetAntiraidVerification

func (_m *Database) SetAntiraidVerification(guildID string, state bool) error

SetAntiraidVerification provides a mock function with given fields: guildID, state

func (*Database) SetBirthday

func (_m *Database) SetBirthday(m models.Birthday) error

SetBirthday provides a mock function with given fields: m

func (*Database) SetGuildAPI

func (_m *Database) SetGuildAPI(guildID string, settings models.GuildAPISettings) error

SetGuildAPI provides a mock function with given fields: guildID, settings

func (*Database) SetGuildAutoRole

func (_m *Database) SetGuildAutoRole(guildID string, autoRoleIDs []string) error

SetGuildAutoRole provides a mock function with given fields: guildID, autoRoleIDs

func (*Database) SetGuildAutoVC

func (_m *Database) SetGuildAutoVC(guildID string, autoVCIDs []string) error

SetGuildAutoVC provides a mock function with given fields: guildID, autoVCIDs

func (*Database) SetGuildBackup

func (_m *Database) SetGuildBackup(guildID string, enabled bool) error

SetGuildBackup provides a mock function with given fields: guildID, enabled

func (*Database) SetGuildBirthdayChan

func (_m *Database) SetGuildBirthdayChan(guildID string, chanID string) error

SetGuildBirthdayChan provides a mock function with given fields: guildID, chanID

func (*Database) SetGuildCodeExecEnabled

func (_m *Database) SetGuildCodeExecEnabled(guildID string, enabled bool) error

SetGuildCodeExecEnabled provides a mock function with given fields: guildID, enabled

func (*Database) SetGuildColorReaction

func (_m *Database) SetGuildColorReaction(guildID string, enable bool) error

SetGuildColorReaction provides a mock function with given fields: guildID, enable

func (*Database) SetGuildGhostpingMsg

func (_m *Database) SetGuildGhostpingMsg(guildID string, msg string) error

SetGuildGhostpingMsg provides a mock function with given fields: guildID, msg

func (*Database) SetGuildInviteBlock

func (_m *Database) SetGuildInviteBlock(guildID string, data string) error

SetGuildInviteBlock provides a mock function with given fields: guildID, data

func (*Database) SetGuildJdoodleKey

func (_m *Database) SetGuildJdoodleKey(guildID string, key string) error

SetGuildJdoodleKey provides a mock function with given fields: guildID, key

func (*Database) SetGuildJoinMsg

func (_m *Database) SetGuildJoinMsg(guildID string, channelID string, msg string) error

SetGuildJoinMsg provides a mock function with given fields: guildID, channelID, msg

func (*Database) SetGuildLeaveMsg

func (_m *Database) SetGuildLeaveMsg(guildID string, channelID string, msg string) error

SetGuildLeaveMsg provides a mock function with given fields: guildID, channelID, msg

func (*Database) SetGuildLogDisable

func (_m *Database) SetGuildLogDisable(guildID string, enabled bool) error

SetGuildLogDisable provides a mock function with given fields: guildID, enabled

func (*Database) SetGuildModLog

func (_m *Database) SetGuildModLog(guildID string, chanID string) error

SetGuildModLog provides a mock function with given fields: guildID, chanID

func (*Database) SetGuildModNot

func (_m *Database) SetGuildModNot(guildID string, chanID string) error

SetGuildModNot provides a mock function with given fields: guildID, chanID

func (*Database) SetGuildNotifyRole

func (_m *Database) SetGuildNotifyRole(guildID string, roleID string) error

SetGuildNotifyRole provides a mock function with given fields: guildID, roleID

func (*Database) SetGuildPrefix

func (_m *Database) SetGuildPrefix(guildID string, newPrefix string) error

SetGuildPrefix provides a mock function with given fields: guildID, newPrefix

func (*Database) SetGuildRolePermission

func (_m *Database) SetGuildRolePermission(guildID string, roleID string, p permissions.PermissionArray) error

SetGuildRolePermission provides a mock function with given fields: guildID, roleID, p

func (*Database) SetGuildVerificationRequired

func (_m *Database) SetGuildVerificationRequired(guildID string, enable bool) error

SetGuildVerificationRequired provides a mock function with given fields: guildID, enable

func (*Database) SetGuildVoiceLog

func (_m *Database) SetGuildVoiceLog(guildID string, chanID string) error

SetGuildVoiceLog provides a mock function with given fields: guildID, chanID

func (*Database) SetGuildVoiceLogIngore

func (_m *Database) SetGuildVoiceLogIngore(guildID string, channelID string) error

SetGuildVoiceLogIngore provides a mock function with given fields: guildID, channelID

func (*Database) SetKarma

func (_m *Database) SetKarma(userID string, guildID string, val int) error

SetKarma provides a mock function with given fields: userID, guildID, val

func (*Database) SetKarmaEmotes

func (_m *Database) SetKarmaEmotes(guildID string, emotesInc string, emotesDec string) error

SetKarmaEmotes provides a mock function with given fields: guildID, emotesInc, emotesDec

func (*Database) SetKarmaPenalty

func (_m *Database) SetKarmaPenalty(guildID string, state bool) error

SetKarmaPenalty provides a mock function with given fields: guildID, state

func (*Database) SetKarmaState

func (_m *Database) SetKarmaState(guildID string, state bool) error

SetKarmaState provides a mock function with given fields: guildID, state

func (*Database) SetKarmaTokens

func (_m *Database) SetKarmaTokens(guildID string, tokens int) error

SetKarmaTokens provides a mock function with given fields: guildID, tokens

func (*Database) SetLockChan

func (_m *Database) SetLockChan(chanID string, guildID string, executorID string, _a3 string) error

SetLockChan provides a mock function with given fields: chanID, guildID, executorID, _a3

func (*Database) SetSetting

func (_m *Database) SetSetting(setting string, value string) error

SetSetting provides a mock function with given fields: setting, value

func (*Database) SetStarboardConfig

func (_m *Database) SetStarboardConfig(config models.StarboardConfig) error

SetStarboardConfig provides a mock function with given fields: config

func (*Database) SetStarboardEntry

func (_m *Database) SetStarboardEntry(e models.StarboardEntry) error

SetStarboardEntry provides a mock function with given fields: e

func (*Database) SetTwitchNotify

func (_m *Database) SetTwitchNotify(twitchNotify twitchnotify.DBEntry) error

SetTwitchNotify provides a mock function with given fields: twitchNotify

func (*Database) SetUserOTAEnabled

func (_m *Database) SetUserOTAEnabled(userID string, enabled bool) error

SetUserOTAEnabled provides a mock function with given fields: userID, enabled

func (*Database) SetUserRefreshToken

func (_m *Database) SetUserRefreshToken(userID string, token string, expires time.Time) error

SetUserRefreshToken provides a mock function with given fields: userID, token, expires

func (*Database) SetUserStarboardOptout

func (_m *Database) SetUserStarboardOptout(userID string, enabled bool) error

SetUserStarboardOptout provides a mock function with given fields: userID, enabled

func (*Database) SetUserVerified

func (_m *Database) SetUserVerified(userID string, enabled bool) error

SetUserVerified provides a mock function with given fields: userID, enabled

func (*Database) Status

func (_m *Database) Status() error

Status provides a mock function with given fields:

func (*Database) UpdateKarma

func (_m *Database) UpdateKarma(userID string, guildID string, diff int) error

UpdateKarma provides a mock function with given fields: userID, guildID, diff

func (*Database) UpdateUnbanRequest

func (_m *Database) UpdateUnbanRequest(request models.UnbanRequest) error

UpdateUnbanRequest provides a mock function with given fields: request

type IKen

type IKen struct {
	mock.Mock
}

IKen is an autogenerated mock type for the IKen type

func NewIKen

func NewIKen(t interface {
	mock.TestingT
	Cleanup(func())
}) *IKen

NewIKen creates a new instance of IKen. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IKen) Components

func (_m *IKen) Components() *ken.ComponentHandler

Components provides a mock function with given fields:

func (*IKen) GetCommandInfo

func (_m *IKen) GetCommandInfo(keyTransformer ...ken.KeyTransformerFunc) ken.CommandInfoList

GetCommandInfo provides a mock function with given fields: keyTransformer

func (*IKen) RegisterCommands

func (_m *IKen) RegisterCommands(cmds ...ken.Command) error

RegisterCommands provides a mock function with given fields: cmds

func (*IKen) RegisterMiddlewares

func (_m *IKen) RegisterMiddlewares(mws ...interface{}) error

RegisterMiddlewares provides a mock function with given fields: mws

func (*IKen) Session

func (_m *IKen) Session() *discordgo.Session

Session provides a mock function with given fields:

func (*IKen) Unregister

func (_m *IKen) Unregister() error

Unregister provides a mock function with given fields:

type ISession

type ISession struct {
	mock.Mock
}

ISession is an autogenerated mock type for the ISession type

func NewISession

func NewISession(t interface {
	mock.TestingT
	Cleanup(func())
}) *ISession

NewISession creates a new instance of ISession. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ISession) AddHandler

func (_m *ISession) AddHandler(handler interface{}) func()

AddHandler provides a mock function with given fields: handler

func (*ISession) AddHandlerOnce

func (_m *ISession) AddHandlerOnce(handler interface{}) func()

AddHandlerOnce provides a mock function with given fields: handler

func (*ISession) Application

func (_m *ISession) Application(appID string) (*discordgo.Application, error)

Application provides a mock function with given fields: appID

func (*ISession) ApplicationAssets

func (_m *ISession) ApplicationAssets(appID string) ([]*discordgo.Asset, error)

ApplicationAssets provides a mock function with given fields: appID

func (*ISession) ApplicationBotCreate

func (_m *ISession) ApplicationBotCreate(appID string) (*discordgo.User, error)

ApplicationBotCreate provides a mock function with given fields: appID

func (*ISession) ApplicationCommand

func (_m *ISession) ApplicationCommand(appID string, guildID string, cmdID string, options ...discordgo.RequestOption) (*discordgo.ApplicationCommand, error)

ApplicationCommand provides a mock function with given fields: appID, guildID, cmdID, options

func (*ISession) ApplicationCommandBulkOverwrite

func (_m *ISession) ApplicationCommandBulkOverwrite(appID string, guildID string, commands []*discordgo.ApplicationCommand, options ...discordgo.RequestOption) ([]*discordgo.ApplicationCommand, error)

ApplicationCommandBulkOverwrite provides a mock function with given fields: appID, guildID, commands, options

func (*ISession) ApplicationCommandCreate

func (_m *ISession) ApplicationCommandCreate(appID string, guildID string, cmd *discordgo.ApplicationCommand, options ...discordgo.RequestOption) (*discordgo.ApplicationCommand, error)

ApplicationCommandCreate provides a mock function with given fields: appID, guildID, cmd, options

func (*ISession) ApplicationCommandDelete

func (_m *ISession) ApplicationCommandDelete(appID string, guildID string, cmdID string, options ...discordgo.RequestOption) error

ApplicationCommandDelete provides a mock function with given fields: appID, guildID, cmdID, options

func (*ISession) ApplicationCommandEdit

func (_m *ISession) ApplicationCommandEdit(appID string, guildID string, cmdID string, cmd *discordgo.ApplicationCommand, options ...discordgo.RequestOption) (*discordgo.ApplicationCommand, error)

ApplicationCommandEdit provides a mock function with given fields: appID, guildID, cmdID, cmd, options

func (*ISession) ApplicationCommandPermissions

func (_m *ISession) ApplicationCommandPermissions(appID string, guildID string, cmdID string, options ...discordgo.RequestOption) (*discordgo.GuildApplicationCommandPermissions, error)

ApplicationCommandPermissions provides a mock function with given fields: appID, guildID, cmdID, options

func (*ISession) ApplicationCommandPermissionsBatchEdit

func (_m *ISession) ApplicationCommandPermissionsBatchEdit(appID string, guildID string, permissions []*discordgo.GuildApplicationCommandPermissions, options ...discordgo.RequestOption) error

ApplicationCommandPermissionsBatchEdit provides a mock function with given fields: appID, guildID, permissions, options

func (*ISession) ApplicationCommandPermissionsEdit

func (_m *ISession) ApplicationCommandPermissionsEdit(appID string, guildID string, cmdID string, permissions *discordgo.ApplicationCommandPermissionsList, options ...discordgo.RequestOption) error

ApplicationCommandPermissionsEdit provides a mock function with given fields: appID, guildID, cmdID, permissions, options

func (*ISession) ApplicationCommands

func (_m *ISession) ApplicationCommands(appID string, guildID string, options ...discordgo.RequestOption) ([]*discordgo.ApplicationCommand, error)

ApplicationCommands provides a mock function with given fields: appID, guildID, options

func (*ISession) ApplicationCreate

func (_m *ISession) ApplicationCreate(ap *discordgo.Application) (*discordgo.Application, error)

ApplicationCreate provides a mock function with given fields: ap

func (*ISession) ApplicationDelete

func (_m *ISession) ApplicationDelete(appID string) error

ApplicationDelete provides a mock function with given fields: appID

func (*ISession) ApplicationRoleConnectionMetadata

func (_m *ISession) ApplicationRoleConnectionMetadata(appID string) ([]*discordgo.ApplicationRoleConnectionMetadata, error)

ApplicationRoleConnectionMetadata provides a mock function with given fields: appID

func (*ISession) ApplicationRoleConnectionMetadataUpdate

func (_m *ISession) ApplicationRoleConnectionMetadataUpdate(appID string, metadata []*discordgo.ApplicationRoleConnectionMetadata) ([]*discordgo.ApplicationRoleConnectionMetadata, error)

ApplicationRoleConnectionMetadataUpdate provides a mock function with given fields: appID, metadata

func (*ISession) ApplicationUpdate

func (_m *ISession) ApplicationUpdate(appID string, ap *discordgo.Application) (*discordgo.Application, error)

ApplicationUpdate provides a mock function with given fields: appID, ap

func (*ISession) Applications

func (_m *ISession) Applications() ([]*discordgo.Application, error)

Applications provides a mock function with given fields:

func (*ISession) AutoModerationRule

func (_m *ISession) AutoModerationRule(guildID string, ruleID string, options ...discordgo.RequestOption) (*discordgo.AutoModerationRule, error)

AutoModerationRule provides a mock function with given fields: guildID, ruleID, options

func (*ISession) AutoModerationRuleCreate

func (_m *ISession) AutoModerationRuleCreate(guildID string, rule *discordgo.AutoModerationRule, options ...discordgo.RequestOption) (*discordgo.AutoModerationRule, error)

AutoModerationRuleCreate provides a mock function with given fields: guildID, rule, options

func (*ISession) AutoModerationRuleDelete

func (_m *ISession) AutoModerationRuleDelete(guildID string, ruleID string, options ...discordgo.RequestOption) error

AutoModerationRuleDelete provides a mock function with given fields: guildID, ruleID, options

func (*ISession) AutoModerationRuleEdit

func (_m *ISession) AutoModerationRuleEdit(guildID string, ruleID string, rule *discordgo.AutoModerationRule, options ...discordgo.RequestOption) (*discordgo.AutoModerationRule, error)

AutoModerationRuleEdit provides a mock function with given fields: guildID, ruleID, rule, options

func (*ISession) AutoModerationRules

func (_m *ISession) AutoModerationRules(guildID string, options ...discordgo.RequestOption) ([]*discordgo.AutoModerationRule, error)

AutoModerationRules provides a mock function with given fields: guildID, options

func (*ISession) Channel

func (_m *ISession) Channel(channelID string, options ...discordgo.RequestOption) (*discordgo.Channel, error)

Channel provides a mock function with given fields: channelID, options

func (*ISession) ChannelDelete

func (_m *ISession) ChannelDelete(channelID string, options ...discordgo.RequestOption) (*discordgo.Channel, error)

ChannelDelete provides a mock function with given fields: channelID, options

func (*ISession) ChannelEdit

func (_m *ISession) ChannelEdit(channelID string, data *discordgo.ChannelEdit, options ...discordgo.RequestOption) (*discordgo.Channel, error)

ChannelEdit provides a mock function with given fields: channelID, data, options

func (*ISession) ChannelEditComplex

func (_m *ISession) ChannelEditComplex(channelID string, data *discordgo.ChannelEdit, options ...discordgo.RequestOption) (*discordgo.Channel, error)

ChannelEditComplex provides a mock function with given fields: channelID, data, options

func (*ISession) ChannelFileSend

func (_m *ISession) ChannelFileSend(channelID string, name string, r io.Reader, options ...discordgo.RequestOption) (*discordgo.Message, error)

ChannelFileSend provides a mock function with given fields: channelID, name, r, options

func (*ISession) ChannelFileSendWithMessage

func (_m *ISession) ChannelFileSendWithMessage(channelID string, content string, name string, r io.Reader, options ...discordgo.RequestOption) (*discordgo.Message, error)

ChannelFileSendWithMessage provides a mock function with given fields: channelID, content, name, r, options

func (*ISession) ChannelInviteCreate

func (_m *ISession) ChannelInviteCreate(channelID string, i discordgo.Invite, options ...discordgo.RequestOption) (*discordgo.Invite, error)

ChannelInviteCreate provides a mock function with given fields: channelID, i, options

func (*ISession) ChannelInvites

func (_m *ISession) ChannelInvites(channelID string, options ...discordgo.RequestOption) ([]*discordgo.Invite, error)

ChannelInvites provides a mock function with given fields: channelID, options

func (*ISession) ChannelMessage

func (_m *ISession) ChannelMessage(channelID string, messageID string, options ...discordgo.RequestOption) (*discordgo.Message, error)

ChannelMessage provides a mock function with given fields: channelID, messageID, options

func (*ISession) ChannelMessageCrosspost

func (_m *ISession) ChannelMessageCrosspost(channelID string, messageID string, options ...discordgo.RequestOption) (*discordgo.Message, error)

ChannelMessageCrosspost provides a mock function with given fields: channelID, messageID, options

func (*ISession) ChannelMessageDelete

func (_m *ISession) ChannelMessageDelete(channelID string, messageID string, options ...discordgo.RequestOption) error

ChannelMessageDelete provides a mock function with given fields: channelID, messageID, options

func (*ISession) ChannelMessageEdit

func (_m *ISession) ChannelMessageEdit(channelID string, messageID string, content string, options ...discordgo.RequestOption) (*discordgo.Message, error)

ChannelMessageEdit provides a mock function with given fields: channelID, messageID, content, options

func (*ISession) ChannelMessageEditComplex

func (_m *ISession) ChannelMessageEditComplex(m *discordgo.MessageEdit, options ...discordgo.RequestOption) (*discordgo.Message, error)

ChannelMessageEditComplex provides a mock function with given fields: m, options

func (*ISession) ChannelMessageEditEmbed

func (_m *ISession) ChannelMessageEditEmbed(channelID string, messageID string, embed *discordgo.MessageEmbed, options ...discordgo.RequestOption) (*discordgo.Message, error)

ChannelMessageEditEmbed provides a mock function with given fields: channelID, messageID, embed, options

func (*ISession) ChannelMessageEditEmbeds

func (_m *ISession) ChannelMessageEditEmbeds(channelID string, messageID string, embeds []*discordgo.MessageEmbed, options ...discordgo.RequestOption) (*discordgo.Message, error)

ChannelMessageEditEmbeds provides a mock function with given fields: channelID, messageID, embeds, options

func (*ISession) ChannelMessagePin

func (_m *ISession) ChannelMessagePin(channelID string, messageID string, options ...discordgo.RequestOption) error

ChannelMessagePin provides a mock function with given fields: channelID, messageID, options

func (*ISession) ChannelMessageSend

func (_m *ISession) ChannelMessageSend(channelID string, content string, options ...discordgo.RequestOption) (*discordgo.Message, error)

ChannelMessageSend provides a mock function with given fields: channelID, content, options

func (*ISession) ChannelMessageSendComplex

func (_m *ISession) ChannelMessageSendComplex(channelID string, data *discordgo.MessageSend, options ...discordgo.RequestOption) (*discordgo.Message, error)

ChannelMessageSendComplex provides a mock function with given fields: channelID, data, options

func (*ISession) ChannelMessageSendEmbed

func (_m *ISession) ChannelMessageSendEmbed(channelID string, embed *discordgo.MessageEmbed, options ...discordgo.RequestOption) (*discordgo.Message, error)

ChannelMessageSendEmbed provides a mock function with given fields: channelID, embed, options

func (*ISession) ChannelMessageSendEmbedReply

func (_m *ISession) ChannelMessageSendEmbedReply(channelID string, embed *discordgo.MessageEmbed, reference *discordgo.MessageReference, options ...discordgo.RequestOption) (*discordgo.Message, error)

ChannelMessageSendEmbedReply provides a mock function with given fields: channelID, embed, reference, options

func (*ISession) ChannelMessageSendEmbeds

func (_m *ISession) ChannelMessageSendEmbeds(channelID string, embeds []*discordgo.MessageEmbed, options ...discordgo.RequestOption) (*discordgo.Message, error)

ChannelMessageSendEmbeds provides a mock function with given fields: channelID, embeds, options

func (*ISession) ChannelMessageSendEmbedsReply

func (_m *ISession) ChannelMessageSendEmbedsReply(channelID string, embeds []*discordgo.MessageEmbed, reference *discordgo.MessageReference, options ...discordgo.RequestOption) (*discordgo.Message, error)

ChannelMessageSendEmbedsReply provides a mock function with given fields: channelID, embeds, reference, options

func (*ISession) ChannelMessageSendReply

func (_m *ISession) ChannelMessageSendReply(channelID string, content string, reference *discordgo.MessageReference, options ...discordgo.RequestOption) (*discordgo.Message, error)

ChannelMessageSendReply provides a mock function with given fields: channelID, content, reference, options

func (*ISession) ChannelMessageSendTTS

func (_m *ISession) ChannelMessageSendTTS(channelID string, content string, options ...discordgo.RequestOption) (*discordgo.Message, error)

ChannelMessageSendTTS provides a mock function with given fields: channelID, content, options

func (*ISession) ChannelMessageUnpin

func (_m *ISession) ChannelMessageUnpin(channelID string, messageID string, options ...discordgo.RequestOption) error

ChannelMessageUnpin provides a mock function with given fields: channelID, messageID, options

func (*ISession) ChannelMessages

func (_m *ISession) ChannelMessages(channelID string, limit int, beforeID string, afterID string, aroundID string, options ...discordgo.RequestOption) ([]*discordgo.Message, error)

ChannelMessages provides a mock function with given fields: channelID, limit, beforeID, afterID, aroundID, options

func (*ISession) ChannelMessagesBulkDelete

func (_m *ISession) ChannelMessagesBulkDelete(channelID string, messages []string, options ...discordgo.RequestOption) error

ChannelMessagesBulkDelete provides a mock function with given fields: channelID, messages, options

func (*ISession) ChannelMessagesPinned

func (_m *ISession) ChannelMessagesPinned(channelID string, options ...discordgo.RequestOption) ([]*discordgo.Message, error)

ChannelMessagesPinned provides a mock function with given fields: channelID, options

func (*ISession) ChannelNewsFollow

func (_m *ISession) ChannelNewsFollow(channelID string, targetID string, options ...discordgo.RequestOption) (*discordgo.ChannelFollow, error)

ChannelNewsFollow provides a mock function with given fields: channelID, targetID, options

func (*ISession) ChannelPermissionDelete

func (_m *ISession) ChannelPermissionDelete(channelID string, targetID string, options ...discordgo.RequestOption) error

ChannelPermissionDelete provides a mock function with given fields: channelID, targetID, options

func (*ISession) ChannelPermissionSet

func (_m *ISession) ChannelPermissionSet(channelID string, targetID string, targetType discordgo.PermissionOverwriteType, allow int64, deny int64, options ...discordgo.RequestOption) error

ChannelPermissionSet provides a mock function with given fields: channelID, targetID, targetType, allow, deny, options

func (*ISession) ChannelTyping

func (_m *ISession) ChannelTyping(channelID string, options ...discordgo.RequestOption) error

ChannelTyping provides a mock function with given fields: channelID, options

func (*ISession) ChannelVoiceJoin

func (_m *ISession) ChannelVoiceJoin(gID string, cID string, mute bool, deaf bool) (*discordgo.VoiceConnection, error)

ChannelVoiceJoin provides a mock function with given fields: gID, cID, mute, deaf

func (*ISession) ChannelVoiceJoinManual

func (_m *ISession) ChannelVoiceJoinManual(gID string, cID string, mute bool, deaf bool) error

ChannelVoiceJoinManual provides a mock function with given fields: gID, cID, mute, deaf

func (*ISession) ChannelWebhooks

func (_m *ISession) ChannelWebhooks(channelID string, options ...discordgo.RequestOption) ([]*discordgo.Webhook, error)

ChannelWebhooks provides a mock function with given fields: channelID, options

func (*ISession) Close

func (_m *ISession) Close() error

Close provides a mock function with given fields:

func (*ISession) CloseWithCode

func (_m *ISession) CloseWithCode(closeCode int) error

CloseWithCode provides a mock function with given fields: closeCode

func (*ISession) FollowupMessageCreate

func (_m *ISession) FollowupMessageCreate(interaction *discordgo.Interaction, wait bool, data *discordgo.WebhookParams, options ...discordgo.RequestOption) (*discordgo.Message, error)

FollowupMessageCreate provides a mock function with given fields: interaction, wait, data, options

func (*ISession) FollowupMessageDelete

func (_m *ISession) FollowupMessageDelete(interaction *discordgo.Interaction, messageID string, options ...discordgo.RequestOption) error

FollowupMessageDelete provides a mock function with given fields: interaction, messageID, options

func (*ISession) FollowupMessageEdit

func (_m *ISession) FollowupMessageEdit(interaction *discordgo.Interaction, messageID string, data *discordgo.WebhookEdit, options ...discordgo.RequestOption) (*discordgo.Message, error)

FollowupMessageEdit provides a mock function with given fields: interaction, messageID, data, options

func (*ISession) ForumThreadStart

func (_m *ISession) ForumThreadStart(channelID string, name string, archiveDuration int, content string, options ...discordgo.RequestOption) (*discordgo.Channel, error)

ForumThreadStart provides a mock function with given fields: channelID, name, archiveDuration, content, options

func (*ISession) ForumThreadStartComplex

func (_m *ISession) ForumThreadStartComplex(channelID string, threadData *discordgo.ThreadStart, messageData *discordgo.MessageSend, options ...discordgo.RequestOption) (*discordgo.Channel, error)

ForumThreadStartComplex provides a mock function with given fields: channelID, threadData, messageData, options

func (*ISession) ForumThreadStartEmbed

func (_m *ISession) ForumThreadStartEmbed(channelID string, name string, archiveDuration int, embed *discordgo.MessageEmbed, options ...discordgo.RequestOption) (*discordgo.Channel, error)

ForumThreadStartEmbed provides a mock function with given fields: channelID, name, archiveDuration, embed, options

func (*ISession) ForumThreadStartEmbeds

func (_m *ISession) ForumThreadStartEmbeds(channelID string, name string, archiveDuration int, embeds []*discordgo.MessageEmbed, options ...discordgo.RequestOption) (*discordgo.Channel, error)

ForumThreadStartEmbeds provides a mock function with given fields: channelID, name, archiveDuration, embeds, options

func (*ISession) Gateway

func (_m *ISession) Gateway(options ...discordgo.RequestOption) (string, error)

Gateway provides a mock function with given fields: options

func (*ISession) GatewayBot

func (_m *ISession) GatewayBot(options ...discordgo.RequestOption) (*discordgo.GatewayBotResponse, error)

GatewayBot provides a mock function with given fields: options

func (*ISession) Guild

func (_m *ISession) Guild(guildID string, options ...discordgo.RequestOption) (*discordgo.Guild, error)

Guild provides a mock function with given fields: guildID, options

func (*ISession) GuildApplicationCommandsPermissions

func (_m *ISession) GuildApplicationCommandsPermissions(appID string, guildID string, options ...discordgo.RequestOption) ([]*discordgo.GuildApplicationCommandPermissions, error)

GuildApplicationCommandsPermissions provides a mock function with given fields: appID, guildID, options

func (*ISession) GuildAuditLog

func (_m *ISession) GuildAuditLog(guildID string, userID string, beforeID string, actionType int, limit int, options ...discordgo.RequestOption) (*discordgo.GuildAuditLog, error)

GuildAuditLog provides a mock function with given fields: guildID, userID, beforeID, actionType, limit, options

func (*ISession) GuildBan

func (_m *ISession) GuildBan(guildID string, userID string, options ...discordgo.RequestOption) (*discordgo.GuildBan, error)

GuildBan provides a mock function with given fields: guildID, userID, options

func (*ISession) GuildBanCreate

func (_m *ISession) GuildBanCreate(guildID string, userID string, days int, options ...discordgo.RequestOption) error

GuildBanCreate provides a mock function with given fields: guildID, userID, days, options

func (*ISession) GuildBanCreateWithReason

func (_m *ISession) GuildBanCreateWithReason(guildID string, userID string, reason string, days int, options ...discordgo.RequestOption) error

GuildBanCreateWithReason provides a mock function with given fields: guildID, userID, reason, days, options

func (*ISession) GuildBanDelete

func (_m *ISession) GuildBanDelete(guildID string, userID string, options ...discordgo.RequestOption) error

GuildBanDelete provides a mock function with given fields: guildID, userID, options

func (*ISession) GuildBans

func (_m *ISession) GuildBans(guildID string, limit int, beforeID string, afterID string, options ...discordgo.RequestOption) ([]*discordgo.GuildBan, error)

GuildBans provides a mock function with given fields: guildID, limit, beforeID, afterID, options

func (*ISession) GuildChannelCreate

func (_m *ISession) GuildChannelCreate(guildID string, name string, ctype discordgo.ChannelType, options ...discordgo.RequestOption) (*discordgo.Channel, error)

GuildChannelCreate provides a mock function with given fields: guildID, name, ctype, options

func (*ISession) GuildChannelCreateComplex

func (_m *ISession) GuildChannelCreateComplex(guildID string, data discordgo.GuildChannelCreateData, options ...discordgo.RequestOption) (*discordgo.Channel, error)

GuildChannelCreateComplex provides a mock function with given fields: guildID, data, options

func (*ISession) GuildChannels

func (_m *ISession) GuildChannels(guildID string, options ...discordgo.RequestOption) ([]*discordgo.Channel, error)

GuildChannels provides a mock function with given fields: guildID, options

func (*ISession) GuildChannelsReorder

func (_m *ISession) GuildChannelsReorder(guildID string, channels []*discordgo.Channel, options ...discordgo.RequestOption) error

GuildChannelsReorder provides a mock function with given fields: guildID, channels, options

func (*ISession) GuildCreate

func (_m *ISession) GuildCreate(name string, options ...discordgo.RequestOption) (*discordgo.Guild, error)

GuildCreate provides a mock function with given fields: name, options

func (*ISession) GuildCreateWithTemplate

func (_m *ISession) GuildCreateWithTemplate(templateCode string, name string, icon string, options ...discordgo.RequestOption) (*discordgo.Guild, error)

GuildCreateWithTemplate provides a mock function with given fields: templateCode, name, icon, options

func (*ISession) GuildDelete

func (_m *ISession) GuildDelete(guildID string, options ...discordgo.RequestOption) error

GuildDelete provides a mock function with given fields: guildID, options

func (*ISession) GuildEdit

func (_m *ISession) GuildEdit(guildID string, g *discordgo.GuildParams, options ...discordgo.RequestOption) (*discordgo.Guild, error)

GuildEdit provides a mock function with given fields: guildID, g, options

func (*ISession) GuildEmbed

func (_m *ISession) GuildEmbed(guildID string, options ...discordgo.RequestOption) (*discordgo.GuildEmbed, error)

GuildEmbed provides a mock function with given fields: guildID, options

func (*ISession) GuildEmbedEdit

func (_m *ISession) GuildEmbedEdit(guildID string, data *discordgo.GuildEmbed, options ...discordgo.RequestOption) error

GuildEmbedEdit provides a mock function with given fields: guildID, data, options

func (*ISession) GuildEmoji

func (_m *ISession) GuildEmoji(guildID string, emojiID string, options ...discordgo.RequestOption) (*discordgo.Emoji, error)

GuildEmoji provides a mock function with given fields: guildID, emojiID, options

func (*ISession) GuildEmojiCreate

func (_m *ISession) GuildEmojiCreate(guildID string, data *discordgo.EmojiParams, options ...discordgo.RequestOption) (*discordgo.Emoji, error)

GuildEmojiCreate provides a mock function with given fields: guildID, data, options

func (*ISession) GuildEmojiDelete

func (_m *ISession) GuildEmojiDelete(guildID string, emojiID string, options ...discordgo.RequestOption) error

GuildEmojiDelete provides a mock function with given fields: guildID, emojiID, options

func (*ISession) GuildEmojiEdit

func (_m *ISession) GuildEmojiEdit(guildID string, emojiID string, data *discordgo.EmojiParams, options ...discordgo.RequestOption) (*discordgo.Emoji, error)

GuildEmojiEdit provides a mock function with given fields: guildID, emojiID, data, options

func (*ISession) GuildEmojis

func (_m *ISession) GuildEmojis(guildID string, options ...discordgo.RequestOption) ([]*discordgo.Emoji, error)

GuildEmojis provides a mock function with given fields: guildID, options

func (*ISession) GuildIcon

func (_m *ISession) GuildIcon(guildID string, options ...discordgo.RequestOption) (image.Image, error)

GuildIcon provides a mock function with given fields: guildID, options

func (*ISession) GuildIntegrationCreate

func (_m *ISession) GuildIntegrationCreate(guildID string, integrationType string, integrationID string, options ...discordgo.RequestOption) error

GuildIntegrationCreate provides a mock function with given fields: guildID, integrationType, integrationID, options

func (*ISession) GuildIntegrationDelete

func (_m *ISession) GuildIntegrationDelete(guildID string, integrationID string, options ...discordgo.RequestOption) error

GuildIntegrationDelete provides a mock function with given fields: guildID, integrationID, options

func (*ISession) GuildIntegrationEdit

func (_m *ISession) GuildIntegrationEdit(guildID string, integrationID string, expireBehavior int, expireGracePeriod int, enableEmoticons bool, options ...discordgo.RequestOption) error

GuildIntegrationEdit provides a mock function with given fields: guildID, integrationID, expireBehavior, expireGracePeriod, enableEmoticons, options

func (*ISession) GuildIntegrations

func (_m *ISession) GuildIntegrations(guildID string, options ...discordgo.RequestOption) ([]*discordgo.Integration, error)

GuildIntegrations provides a mock function with given fields: guildID, options

func (*ISession) GuildInvites

func (_m *ISession) GuildInvites(guildID string, options ...discordgo.RequestOption) ([]*discordgo.Invite, error)

GuildInvites provides a mock function with given fields: guildID, options

func (*ISession) GuildLeave

func (_m *ISession) GuildLeave(guildID string, options ...discordgo.RequestOption) error

GuildLeave provides a mock function with given fields: guildID, options

func (*ISession) GuildMember

func (_m *ISession) GuildMember(guildID string, userID string, options ...discordgo.RequestOption) (*discordgo.Member, error)

GuildMember provides a mock function with given fields: guildID, userID, options

func (*ISession) GuildMemberAdd

func (_m *ISession) GuildMemberAdd(guildID string, userID string, data *discordgo.GuildMemberAddParams, options ...discordgo.RequestOption) error

GuildMemberAdd provides a mock function with given fields: guildID, userID, data, options

func (*ISession) GuildMemberDeafen

func (_m *ISession) GuildMemberDeafen(guildID string, userID string, deaf bool, options ...discordgo.RequestOption) error

GuildMemberDeafen provides a mock function with given fields: guildID, userID, deaf, options

func (*ISession) GuildMemberDelete

func (_m *ISession) GuildMemberDelete(guildID string, userID string, options ...discordgo.RequestOption) error

GuildMemberDelete provides a mock function with given fields: guildID, userID, options

func (*ISession) GuildMemberDeleteWithReason

func (_m *ISession) GuildMemberDeleteWithReason(guildID string, userID string, reason string, options ...discordgo.RequestOption) error

GuildMemberDeleteWithReason provides a mock function with given fields: guildID, userID, reason, options

func (*ISession) GuildMemberEdit

func (_m *ISession) GuildMemberEdit(guildID string, userID string, data *discordgo.GuildMemberParams, options ...discordgo.RequestOption) (*discordgo.Member, error)

GuildMemberEdit provides a mock function with given fields: guildID, userID, data, options

func (*ISession) GuildMemberEditComplex

func (_m *ISession) GuildMemberEditComplex(guildID string, userID string, data *discordgo.GuildMemberParams, options ...discordgo.RequestOption) (*discordgo.Member, error)

GuildMemberEditComplex provides a mock function with given fields: guildID, userID, data, options

func (*ISession) GuildMemberMove

func (_m *ISession) GuildMemberMove(guildID string, userID string, channelID *string, options ...discordgo.RequestOption) error

GuildMemberMove provides a mock function with given fields: guildID, userID, channelID, options

func (*ISession) GuildMemberMute

func (_m *ISession) GuildMemberMute(guildID string, userID string, mute bool, options ...discordgo.RequestOption) error

GuildMemberMute provides a mock function with given fields: guildID, userID, mute, options

func (*ISession) GuildMemberNickname

func (_m *ISession) GuildMemberNickname(guildID string, userID string, nickname string, options ...discordgo.RequestOption) error

GuildMemberNickname provides a mock function with given fields: guildID, userID, nickname, options

func (*ISession) GuildMemberRoleAdd

func (_m *ISession) GuildMemberRoleAdd(guildID string, userID string, roleID string, options ...discordgo.RequestOption) error

GuildMemberRoleAdd provides a mock function with given fields: guildID, userID, roleID, options

func (*ISession) GuildMemberRoleRemove

func (_m *ISession) GuildMemberRoleRemove(guildID string, userID string, roleID string, options ...discordgo.RequestOption) error

GuildMemberRoleRemove provides a mock function with given fields: guildID, userID, roleID, options

func (*ISession) GuildMemberTimeout

func (_m *ISession) GuildMemberTimeout(guildID string, userID string, until *time.Time, options ...discordgo.RequestOption) error

GuildMemberTimeout provides a mock function with given fields: guildID, userID, until, options

func (*ISession) GuildMembers

func (_m *ISession) GuildMembers(guildID string, after string, limit int, options ...discordgo.RequestOption) ([]*discordgo.Member, error)

GuildMembers provides a mock function with given fields: guildID, after, limit, options

func (*ISession) GuildMembersSearch

func (_m *ISession) GuildMembersSearch(guildID string, query string, limit int, options ...discordgo.RequestOption) ([]*discordgo.Member, error)

GuildMembersSearch provides a mock function with given fields: guildID, query, limit, options

func (*ISession) GuildOnboarding

func (_m *ISession) GuildOnboarding(guildID string, options ...discordgo.RequestOption) (*discordgo.GuildOnboarding, error)

GuildOnboarding provides a mock function with given fields: guildID, options

func (*ISession) GuildOnboardingEdit

func (_m *ISession) GuildOnboardingEdit(guildID string, o *discordgo.GuildOnboarding, options ...discordgo.RequestOption) (*discordgo.GuildOnboarding, error)

GuildOnboardingEdit provides a mock function with given fields: guildID, o, options

func (*ISession) GuildPreview

func (_m *ISession) GuildPreview(guildID string, options ...discordgo.RequestOption) (*discordgo.GuildPreview, error)

GuildPreview provides a mock function with given fields: guildID, options

func (*ISession) GuildPrune

func (_m *ISession) GuildPrune(guildID string, days uint32, options ...discordgo.RequestOption) (uint32, error)

GuildPrune provides a mock function with given fields: guildID, days, options

func (*ISession) GuildPruneCount

func (_m *ISession) GuildPruneCount(guildID string, days uint32, options ...discordgo.RequestOption) (uint32, error)

GuildPruneCount provides a mock function with given fields: guildID, days, options

func (*ISession) GuildRoleCreate

func (_m *ISession) GuildRoleCreate(guildID string, data *discordgo.RoleParams, options ...discordgo.RequestOption) (*discordgo.Role, error)

GuildRoleCreate provides a mock function with given fields: guildID, data, options

func (*ISession) GuildRoleDelete

func (_m *ISession) GuildRoleDelete(guildID string, roleID string, options ...discordgo.RequestOption) error

GuildRoleDelete provides a mock function with given fields: guildID, roleID, options

func (*ISession) GuildRoleEdit

func (_m *ISession) GuildRoleEdit(guildID string, roleID string, data *discordgo.RoleParams, options ...discordgo.RequestOption) (*discordgo.Role, error)

GuildRoleEdit provides a mock function with given fields: guildID, roleID, data, options

func (*ISession) GuildRoleReorder

func (_m *ISession) GuildRoleReorder(guildID string, roles []*discordgo.Role, options ...discordgo.RequestOption) ([]*discordgo.Role, error)

GuildRoleReorder provides a mock function with given fields: guildID, roles, options

func (*ISession) GuildRoles

func (_m *ISession) GuildRoles(guildID string, options ...discordgo.RequestOption) ([]*discordgo.Role, error)

GuildRoles provides a mock function with given fields: guildID, options

func (*ISession) GuildScheduledEvent

func (_m *ISession) GuildScheduledEvent(guildID string, eventID string, userCount bool, options ...discordgo.RequestOption) (*discordgo.GuildScheduledEvent, error)

GuildScheduledEvent provides a mock function with given fields: guildID, eventID, userCount, options

func (*ISession) GuildScheduledEventCreate

func (_m *ISession) GuildScheduledEventCreate(guildID string, event *discordgo.GuildScheduledEventParams, options ...discordgo.RequestOption) (*discordgo.GuildScheduledEvent, error)

GuildScheduledEventCreate provides a mock function with given fields: guildID, event, options

func (*ISession) GuildScheduledEventDelete

func (_m *ISession) GuildScheduledEventDelete(guildID string, eventID string, options ...discordgo.RequestOption) error

GuildScheduledEventDelete provides a mock function with given fields: guildID, eventID, options

func (*ISession) GuildScheduledEventEdit

func (_m *ISession) GuildScheduledEventEdit(guildID string, eventID string, event *discordgo.GuildScheduledEventParams, options ...discordgo.RequestOption) (*discordgo.GuildScheduledEvent, error)

GuildScheduledEventEdit provides a mock function with given fields: guildID, eventID, event, options

func (*ISession) GuildScheduledEventUsers

func (_m *ISession) GuildScheduledEventUsers(guildID string, eventID string, limit int, withMember bool, beforeID string, afterID string, options ...discordgo.RequestOption) ([]*discordgo.GuildScheduledEventUser, error)

GuildScheduledEventUsers provides a mock function with given fields: guildID, eventID, limit, withMember, beforeID, afterID, options

func (*ISession) GuildScheduledEvents

func (_m *ISession) GuildScheduledEvents(guildID string, userCount bool, options ...discordgo.RequestOption) ([]*discordgo.GuildScheduledEvent, error)

GuildScheduledEvents provides a mock function with given fields: guildID, userCount, options

func (*ISession) GuildSplash

func (_m *ISession) GuildSplash(guildID string, options ...discordgo.RequestOption) (image.Image, error)

GuildSplash provides a mock function with given fields: guildID, options

func (*ISession) GuildTemplate

func (_m *ISession) GuildTemplate(templateCode string, options ...discordgo.RequestOption) (*discordgo.GuildTemplate, error)

GuildTemplate provides a mock function with given fields: templateCode, options

func (*ISession) GuildTemplateCreate

func (_m *ISession) GuildTemplateCreate(guildID string, data *discordgo.GuildTemplateParams, options ...discordgo.RequestOption) *discordgo.GuildTemplate

GuildTemplateCreate provides a mock function with given fields: guildID, data, options

func (*ISession) GuildTemplateDelete

func (_m *ISession) GuildTemplateDelete(guildID string, templateCode string, options ...discordgo.RequestOption) error

GuildTemplateDelete provides a mock function with given fields: guildID, templateCode, options

func (*ISession) GuildTemplateEdit

func (_m *ISession) GuildTemplateEdit(guildID string, templateCode string, data *discordgo.GuildTemplateParams, options ...discordgo.RequestOption) (*discordgo.GuildTemplate, error)

GuildTemplateEdit provides a mock function with given fields: guildID, templateCode, data, options

func (*ISession) GuildTemplateSync

func (_m *ISession) GuildTemplateSync(guildID string, templateCode string, options ...discordgo.RequestOption) error

GuildTemplateSync provides a mock function with given fields: guildID, templateCode, options

func (*ISession) GuildTemplates

func (_m *ISession) GuildTemplates(guildID string, options ...discordgo.RequestOption) ([]*discordgo.GuildTemplate, error)

GuildTemplates provides a mock function with given fields: guildID, options

func (*ISession) GuildThreadsActive

func (_m *ISession) GuildThreadsActive(guildID string, options ...discordgo.RequestOption) (*discordgo.ThreadsList, error)

GuildThreadsActive provides a mock function with given fields: guildID, options

func (*ISession) GuildWebhooks

func (_m *ISession) GuildWebhooks(guildID string, options ...discordgo.RequestOption) ([]*discordgo.Webhook, error)

GuildWebhooks provides a mock function with given fields: guildID, options

func (*ISession) GuildWithCounts

func (_m *ISession) GuildWithCounts(guildID string, options ...discordgo.RequestOption) (*discordgo.Guild, error)

GuildWithCounts provides a mock function with given fields: guildID, options

func (*ISession) HeartbeatLatency

func (_m *ISession) HeartbeatLatency() time.Duration

HeartbeatLatency provides a mock function with given fields:

func (*ISession) InteractionRespond

func (_m *ISession) InteractionRespond(interaction *discordgo.Interaction, resp *discordgo.InteractionResponse, options ...discordgo.RequestOption) error

InteractionRespond provides a mock function with given fields: interaction, resp, options

func (*ISession) InteractionResponse

func (_m *ISession) InteractionResponse(interaction *discordgo.Interaction, options ...discordgo.RequestOption) (*discordgo.Message, error)

InteractionResponse provides a mock function with given fields: interaction, options

func (*ISession) InteractionResponseDelete

func (_m *ISession) InteractionResponseDelete(interaction *discordgo.Interaction, options ...discordgo.RequestOption) error

InteractionResponseDelete provides a mock function with given fields: interaction, options

func (*ISession) InteractionResponseEdit

func (_m *ISession) InteractionResponseEdit(interaction *discordgo.Interaction, newresp *discordgo.WebhookEdit, options ...discordgo.RequestOption) (*discordgo.Message, error)

InteractionResponseEdit provides a mock function with given fields: interaction, newresp, options

func (*ISession) Invite

func (_m *ISession) Invite(inviteID string, options ...discordgo.RequestOption) (*discordgo.Invite, error)

Invite provides a mock function with given fields: inviteID, options

func (*ISession) InviteAccept

func (_m *ISession) InviteAccept(inviteID string, options ...discordgo.RequestOption) (*discordgo.Invite, error)

InviteAccept provides a mock function with given fields: inviteID, options

func (*ISession) InviteComplex

func (_m *ISession) InviteComplex(inviteID string, guildScheduledEventID string, withCounts bool, withExpiration bool, options ...discordgo.RequestOption) (*discordgo.Invite, error)

InviteComplex provides a mock function with given fields: inviteID, guildScheduledEventID, withCounts, withExpiration, options

func (*ISession) InviteDelete

func (_m *ISession) InviteDelete(inviteID string, options ...discordgo.RequestOption) (*discordgo.Invite, error)

InviteDelete provides a mock function with given fields: inviteID, options

func (*ISession) InviteWithCounts

func (_m *ISession) InviteWithCounts(inviteID string, options ...discordgo.RequestOption) (*discordgo.Invite, error)

InviteWithCounts provides a mock function with given fields: inviteID, options

func (*ISession) MessageReactionAdd

func (_m *ISession) MessageReactionAdd(channelID string, messageID string, emojiID string, options ...discordgo.RequestOption) error

MessageReactionAdd provides a mock function with given fields: channelID, messageID, emojiID, options

func (*ISession) MessageReactionRemove

func (_m *ISession) MessageReactionRemove(channelID string, messageID string, emojiID string, userID string, options ...discordgo.RequestOption) error

MessageReactionRemove provides a mock function with given fields: channelID, messageID, emojiID, userID, options

func (*ISession) MessageReactions

func (_m *ISession) MessageReactions(channelID string, messageID string, emojiID string, limit int, beforeID string, afterID string, options ...discordgo.RequestOption) ([]*discordgo.User, error)

MessageReactions provides a mock function with given fields: channelID, messageID, emojiID, limit, beforeID, afterID, options

func (*ISession) MessageReactionsRemoveAll

func (_m *ISession) MessageReactionsRemoveAll(channelID string, messageID string, options ...discordgo.RequestOption) error

MessageReactionsRemoveAll provides a mock function with given fields: channelID, messageID, options

func (*ISession) MessageReactionsRemoveEmoji

func (_m *ISession) MessageReactionsRemoveEmoji(channelID string, messageID string, emojiID string, options ...discordgo.RequestOption) error

MessageReactionsRemoveEmoji provides a mock function with given fields: channelID, messageID, emojiID, options

func (*ISession) MessageThreadStart

func (_m *ISession) MessageThreadStart(channelID string, messageID string, name string, archiveDuration int, options ...discordgo.RequestOption) (*discordgo.Channel, error)

MessageThreadStart provides a mock function with given fields: channelID, messageID, name, archiveDuration, options

func (*ISession) MessageThreadStartComplex

func (_m *ISession) MessageThreadStartComplex(channelID string, messageID string, data *discordgo.ThreadStart, options ...discordgo.RequestOption) (*discordgo.Channel, error)

MessageThreadStartComplex provides a mock function with given fields: channelID, messageID, data, options

func (*ISession) Open

func (_m *ISession) Open() error

Open provides a mock function with given fields:

func (*ISession) Request

func (_m *ISession) Request(method string, urlStr string, data interface{}, options ...discordgo.RequestOption) ([]byte, error)

Request provides a mock function with given fields: method, urlStr, data, options

func (*ISession) RequestGuildMembers

func (_m *ISession) RequestGuildMembers(guildID string, query string, limit int, nonce string, presences bool) error

RequestGuildMembers provides a mock function with given fields: guildID, query, limit, nonce, presences

func (*ISession) RequestGuildMembersBatch

func (_m *ISession) RequestGuildMembersBatch(guildIDs []string, query string, limit int, nonce string, presences bool) error

RequestGuildMembersBatch provides a mock function with given fields: guildIDs, query, limit, nonce, presences

func (*ISession) RequestGuildMembersBatchList

func (_m *ISession) RequestGuildMembersBatchList(guildIDs []string, userIDs []string, limit int, nonce string, presences bool) error

RequestGuildMembersBatchList provides a mock function with given fields: guildIDs, userIDs, limit, nonce, presences

func (*ISession) RequestGuildMembersList

func (_m *ISession) RequestGuildMembersList(guildID string, userIDs []string, limit int, nonce string, presences bool) error

RequestGuildMembersList provides a mock function with given fields: guildID, userIDs, limit, nonce, presences

func (*ISession) RequestWithBucketID

func (_m *ISession) RequestWithBucketID(method string, urlStr string, data interface{}, bucketID string, options ...discordgo.RequestOption) ([]byte, error)

RequestWithBucketID provides a mock function with given fields: method, urlStr, data, bucketID, options

func (*ISession) RequestWithLockedBucket

func (_m *ISession) RequestWithLockedBucket(method string, urlStr string, contentType string, b []byte, bucket *discordgo.Bucket, sequence int, options ...discordgo.RequestOption) ([]byte, error)

RequestWithLockedBucket provides a mock function with given fields: method, urlStr, contentType, b, bucket, sequence, options

func (*ISession) StageInstance

func (_m *ISession) StageInstance(channelID string, options ...discordgo.RequestOption) (*discordgo.StageInstance, error)

StageInstance provides a mock function with given fields: channelID, options

func (*ISession) StageInstanceCreate

func (_m *ISession) StageInstanceCreate(data *discordgo.StageInstanceParams, options ...discordgo.RequestOption) (*discordgo.StageInstance, error)

StageInstanceCreate provides a mock function with given fields: data, options

func (*ISession) StageInstanceDelete

func (_m *ISession) StageInstanceDelete(channelID string, options ...discordgo.RequestOption) error

StageInstanceDelete provides a mock function with given fields: channelID, options

func (*ISession) StageInstanceEdit

func (_m *ISession) StageInstanceEdit(channelID string, data *discordgo.StageInstanceParams, options ...discordgo.RequestOption) (*discordgo.StageInstance, error)

StageInstanceEdit provides a mock function with given fields: channelID, data, options

func (*ISession) ThreadJoin

func (_m *ISession) ThreadJoin(id string, options ...discordgo.RequestOption) error

ThreadJoin provides a mock function with given fields: id, options

func (*ISession) ThreadLeave

func (_m *ISession) ThreadLeave(id string, options ...discordgo.RequestOption) error

ThreadLeave provides a mock function with given fields: id, options

func (*ISession) ThreadMember

func (_m *ISession) ThreadMember(threadID string, memberID string, withMember bool, options ...discordgo.RequestOption) (*discordgo.ThreadMember, error)

ThreadMember provides a mock function with given fields: threadID, memberID, withMember, options

func (*ISession) ThreadMemberAdd

func (_m *ISession) ThreadMemberAdd(threadID string, memberID string, options ...discordgo.RequestOption) error

ThreadMemberAdd provides a mock function with given fields: threadID, memberID, options

func (*ISession) ThreadMemberRemove

func (_m *ISession) ThreadMemberRemove(threadID string, memberID string, options ...discordgo.RequestOption) error

ThreadMemberRemove provides a mock function with given fields: threadID, memberID, options

func (*ISession) ThreadMembers

func (_m *ISession) ThreadMembers(threadID string, limit int, withMember bool, afterID string, options ...discordgo.RequestOption) ([]*discordgo.ThreadMember, error)

ThreadMembers provides a mock function with given fields: threadID, limit, withMember, afterID, options

func (*ISession) ThreadStart

func (_m *ISession) ThreadStart(channelID string, name string, typ discordgo.ChannelType, archiveDuration int, options ...discordgo.RequestOption) (*discordgo.Channel, error)

ThreadStart provides a mock function with given fields: channelID, name, typ, archiveDuration, options

func (*ISession) ThreadStartComplex

func (_m *ISession) ThreadStartComplex(channelID string, data *discordgo.ThreadStart, options ...discordgo.RequestOption) (*discordgo.Channel, error)

ThreadStartComplex provides a mock function with given fields: channelID, data, options

func (*ISession) ThreadsActive

func (_m *ISession) ThreadsActive(channelID string, options ...discordgo.RequestOption) (*discordgo.ThreadsList, error)

ThreadsActive provides a mock function with given fields: channelID, options

func (*ISession) ThreadsArchived

func (_m *ISession) ThreadsArchived(channelID string, before *time.Time, limit int, options ...discordgo.RequestOption) (*discordgo.ThreadsList, error)

ThreadsArchived provides a mock function with given fields: channelID, before, limit, options

func (*ISession) ThreadsPrivateArchived

func (_m *ISession) ThreadsPrivateArchived(channelID string, before *time.Time, limit int, options ...discordgo.RequestOption) (*discordgo.ThreadsList, error)

ThreadsPrivateArchived provides a mock function with given fields: channelID, before, limit, options

func (*ISession) ThreadsPrivateJoinedArchived

func (_m *ISession) ThreadsPrivateJoinedArchived(channelID string, before *time.Time, limit int, options ...discordgo.RequestOption) (*discordgo.ThreadsList, error)

ThreadsPrivateJoinedArchived provides a mock function with given fields: channelID, before, limit, options

func (*ISession) UpdateCustomStatus

func (_m *ISession) UpdateCustomStatus(state string) error

UpdateCustomStatus provides a mock function with given fields: state

func (*ISession) UpdateGameStatus

func (_m *ISession) UpdateGameStatus(idle int, name string) error

UpdateGameStatus provides a mock function with given fields: idle, name

func (*ISession) UpdateListeningStatus

func (_m *ISession) UpdateListeningStatus(name string) error

UpdateListeningStatus provides a mock function with given fields: name

func (*ISession) UpdateStatusComplex

func (_m *ISession) UpdateStatusComplex(usd discordgo.UpdateStatusData) error

UpdateStatusComplex provides a mock function with given fields: usd

func (*ISession) UpdateStreamingStatus

func (_m *ISession) UpdateStreamingStatus(idle int, name string, url string) error

UpdateStreamingStatus provides a mock function with given fields: idle, name, url

func (*ISession) UpdateWatchStatus

func (_m *ISession) UpdateWatchStatus(idle int, name string) error

UpdateWatchStatus provides a mock function with given fields: idle, name

func (*ISession) User

func (_m *ISession) User(userID string, options ...discordgo.RequestOption) (*discordgo.User, error)

User provides a mock function with given fields: userID, options

func (*ISession) UserApplicationRoleConnection

func (_m *ISession) UserApplicationRoleConnection(appID string) (*discordgo.ApplicationRoleConnection, error)

UserApplicationRoleConnection provides a mock function with given fields: appID

func (*ISession) UserApplicationRoleConnectionUpdate

func (_m *ISession) UserApplicationRoleConnectionUpdate(appID string, rconn *discordgo.ApplicationRoleConnection) (*discordgo.ApplicationRoleConnection, error)

UserApplicationRoleConnectionUpdate provides a mock function with given fields: appID, rconn

func (*ISession) UserAvatar

func (_m *ISession) UserAvatar(userID string, options ...discordgo.RequestOption) (image.Image, error)

UserAvatar provides a mock function with given fields: userID, options

func (*ISession) UserAvatarDecode

func (_m *ISession) UserAvatarDecode(u *discordgo.User, options ...discordgo.RequestOption) (image.Image, error)

UserAvatarDecode provides a mock function with given fields: u, options

func (*ISession) UserChannelCreate

func (_m *ISession) UserChannelCreate(recipientID string, options ...discordgo.RequestOption) (*discordgo.Channel, error)

UserChannelCreate provides a mock function with given fields: recipientID, options

func (*ISession) UserChannelPermissions

func (_m *ISession) UserChannelPermissions(userID string, channelID string, fetchOptions ...discordgo.RequestOption) (int64, error)

UserChannelPermissions provides a mock function with given fields: userID, channelID, fetchOptions

func (*ISession) UserConnections

func (_m *ISession) UserConnections(options ...discordgo.RequestOption) ([]*discordgo.UserConnection, error)

UserConnections provides a mock function with given fields: options

func (*ISession) UserGuildMember

func (_m *ISession) UserGuildMember(guildID string, options ...discordgo.RequestOption) (*discordgo.Member, error)

UserGuildMember provides a mock function with given fields: guildID, options

func (*ISession) UserGuilds

func (_m *ISession) UserGuilds(limit int, beforeID string, afterID string, options ...discordgo.RequestOption) ([]*discordgo.UserGuild, error)

UserGuilds provides a mock function with given fields: limit, beforeID, afterID, options

func (*ISession) UserUpdate

func (_m *ISession) UserUpdate(username string, avatar string, options ...discordgo.RequestOption) (*discordgo.User, error)

UserUpdate provides a mock function with given fields: username, avatar, options

func (*ISession) VoiceRegions

func (_m *ISession) VoiceRegions(options ...discordgo.RequestOption) ([]*discordgo.VoiceRegion, error)

VoiceRegions provides a mock function with given fields: options

func (*ISession) Webhook

func (_m *ISession) Webhook(webhookID string, options ...discordgo.RequestOption) (*discordgo.Webhook, error)

Webhook provides a mock function with given fields: webhookID, options

func (*ISession) WebhookCreate

func (_m *ISession) WebhookCreate(channelID string, name string, avatar string, options ...discordgo.RequestOption) (*discordgo.Webhook, error)

WebhookCreate provides a mock function with given fields: channelID, name, avatar, options

func (*ISession) WebhookDelete

func (_m *ISession) WebhookDelete(webhookID string, options ...discordgo.RequestOption) error

WebhookDelete provides a mock function with given fields: webhookID, options

func (*ISession) WebhookDeleteWithToken

func (_m *ISession) WebhookDeleteWithToken(webhookID string, token string, options ...discordgo.RequestOption) (*discordgo.Webhook, error)

WebhookDeleteWithToken provides a mock function with given fields: webhookID, token, options

func (*ISession) WebhookEdit

func (_m *ISession) WebhookEdit(webhookID string, name string, avatar string, channelID string, options ...discordgo.RequestOption) (*discordgo.Role, error)

WebhookEdit provides a mock function with given fields: webhookID, name, avatar, channelID, options

func (*ISession) WebhookEditWithToken

func (_m *ISession) WebhookEditWithToken(webhookID string, token string, name string, avatar string, options ...discordgo.RequestOption) (*discordgo.Role, error)

WebhookEditWithToken provides a mock function with given fields: webhookID, token, name, avatar, options

func (*ISession) WebhookExecute

func (_m *ISession) WebhookExecute(webhookID string, token string, wait bool, data *discordgo.WebhookParams, options ...discordgo.RequestOption) (*discordgo.Message, error)

WebhookExecute provides a mock function with given fields: webhookID, token, wait, data, options

func (*ISession) WebhookMessage

func (_m *ISession) WebhookMessage(webhookID string, token string, messageID string, options ...discordgo.RequestOption) (*discordgo.Message, error)

WebhookMessage provides a mock function with given fields: webhookID, token, messageID, options

func (*ISession) WebhookMessageDelete

func (_m *ISession) WebhookMessageDelete(webhookID string, token string, messageID string, options ...discordgo.RequestOption) error

WebhookMessageDelete provides a mock function with given fields: webhookID, token, messageID, options

func (*ISession) WebhookMessageEdit

func (_m *ISession) WebhookMessageEdit(webhookID string, token string, messageID string, data *discordgo.WebhookEdit, options ...discordgo.RequestOption) (*discordgo.Message, error)

WebhookMessageEdit provides a mock function with given fields: webhookID, token, messageID, data, options

func (*ISession) WebhookThreadExecute

func (_m *ISession) WebhookThreadExecute(webhookID string, token string, wait bool, threadID string, data *discordgo.WebhookParams, options ...discordgo.RequestOption) (*discordgo.Message, error)

WebhookThreadExecute provides a mock function with given fields: webhookID, token, wait, threadID, data, options

func (*ISession) WebhookWithToken

func (_m *ISession) WebhookWithToken(webhookID string, token string, options ...discordgo.RequestOption) (*discordgo.Webhook, error)

WebhookWithToken provides a mock function with given fields: webhookID, token, options

type IState

type IState struct {
	mock.Mock
}

IState is an autogenerated mock type for the IState type

func NewIState

func NewIState(t interface {
	mock.TestingT
	Cleanup(func())
}) *IState

NewIState creates a new instance of IState. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IState) Channel

func (_m *IState) Channel(id string) (*discordgo.Channel, error)

Channel provides a mock function with given fields: id

func (*IState) Channels

func (_m *IState) Channels(guildID string, forceFetch ...bool) ([]*discordgo.Channel, error)

Channels provides a mock function with given fields: guildID, forceFetch

func (*IState) Emoji

func (_m *IState) Emoji(guildID string, emojiID string) (*discordgo.Emoji, error)

Emoji provides a mock function with given fields: guildID, emojiID

func (*IState) Emojis

func (_m *IState) Emojis(guildID string, forceFetch ...bool) ([]*discordgo.Emoji, error)

Emojis provides a mock function with given fields: guildID, forceFetch

func (*IState) Flush

func (_m *IState) Flush(subKeys ...string) error

Flush provides a mock function with given fields: subKeys

func (*IState) Guild

func (_m *IState) Guild(id string, hydrate ...bool) (*discordgo.Guild, error)

Guild provides a mock function with given fields: id, hydrate

func (*IState) Guilds

func (_m *IState) Guilds() ([]*discordgo.Guild, error)

Guilds provides a mock function with given fields:

func (*IState) Member

func (_m *IState) Member(guildID string, memberID string, forceNoFetch ...bool) (*discordgo.Member, error)

Member provides a mock function with given fields: guildID, memberID, forceNoFetch

func (*IState) Members

func (_m *IState) Members(guildID string, forceFetch ...bool) ([]*discordgo.Member, error)

Members provides a mock function with given fields: guildID, forceFetch

func (*IState) MembersLimit

func (_m *IState) MembersLimit(guildID string, afterID string, limit int, forceFetch ...bool) ([]*discordgo.Member, error)

MembersLimit provides a mock function with given fields: guildID, afterID, limit, forceFetch

func (*IState) Message

func (_m *IState) Message(channelID string, messageID string) (*discordgo.Message, error)

Message provides a mock function with given fields: channelID, messageID

func (*IState) Messages

func (_m *IState) Messages(channelID string, forceFetch ...bool) ([]*discordgo.Message, error)

Messages provides a mock function with given fields: channelID, forceFetch

func (*IState) Presence

func (_m *IState) Presence(guildID string, userID string) (*discordgo.Presence, error)

Presence provides a mock function with given fields: guildID, userID

func (*IState) Presences

func (_m *IState) Presences(guildID string) ([]*discordgo.Presence, error)

Presences provides a mock function with given fields: guildID

func (*IState) Publish

func (_m *IState) Publish(channel string, payload interface{}) error

Publish provides a mock function with given fields: channel, payload

func (*IState) ReleaseShard

func (_m *IState) ReleaseShard(pool int, id int) error

ReleaseShard provides a mock function with given fields: pool, id

func (*IState) RemoveChannel

func (_m *IState) RemoveChannel(id string, dehydrate ...bool) error

RemoveChannel provides a mock function with given fields: id, dehydrate

func (*IState) RemoveEmoji

func (_m *IState) RemoveEmoji(guildID string, emojiID string) error

RemoveEmoji provides a mock function with given fields: guildID, emojiID

func (*IState) RemoveGuild

func (_m *IState) RemoveGuild(id string, dehydrate ...bool) error

RemoveGuild provides a mock function with given fields: id, dehydrate

func (*IState) RemoveMember

func (_m *IState) RemoveMember(guildID string, memberID string) error

RemoveMember provides a mock function with given fields: guildID, memberID

func (*IState) RemoveMessage

func (_m *IState) RemoveMessage(channelID string, messageID string) error

RemoveMessage provides a mock function with given fields: channelID, messageID

func (*IState) RemovePresence

func (_m *IState) RemovePresence(guildID string, userID string) error

RemovePresence provides a mock function with given fields: guildID, userID

func (*IState) RemoveRole

func (_m *IState) RemoveRole(guildID string, roleID string) error

RemoveRole provides a mock function with given fields: guildID, roleID

func (*IState) RemoveUser

func (_m *IState) RemoveUser(id string) error

RemoveUser provides a mock function with given fields: id

func (*IState) RemoveVoiceState

func (_m *IState) RemoveVoiceState(guildID string, userID string) error

RemoveVoiceState provides a mock function with given fields: guildID, userID

func (*IState) ReserveShard

func (_m *IState) ReserveShard(pool int, cid ...int) (int, error)

ReserveShard provides a mock function with given fields: pool, cid

func (*IState) Role

func (_m *IState) Role(guildID string, roleID string) (*discordgo.Role, error)

Role provides a mock function with given fields: guildID, roleID

func (*IState) Roles

func (_m *IState) Roles(guildID string, forceFetch ...bool) ([]*discordgo.Role, error)

Roles provides a mock function with given fields: guildID, forceFetch

func (*IState) SelfUser

func (_m *IState) SelfUser() (*discordgo.User, error)

SelfUser provides a mock function with given fields:

func (*IState) SetChannel

func (_m *IState) SetChannel(channel *discordgo.Channel) error

SetChannel provides a mock function with given fields: channel

func (*IState) SetEmoji

func (_m *IState) SetEmoji(guildID string, emoji *discordgo.Emoji) error

SetEmoji provides a mock function with given fields: guildID, emoji

func (*IState) SetGuild

func (_m *IState) SetGuild(guild *discordgo.Guild) error

SetGuild provides a mock function with given fields: guild

func (*IState) SetMember

func (_m *IState) SetMember(guildID string, member *discordgo.Member) error

SetMember provides a mock function with given fields: guildID, member

func (*IState) SetMessage

func (_m *IState) SetMessage(message *discordgo.Message) error

SetMessage provides a mock function with given fields: message

func (*IState) SetPresence

func (_m *IState) SetPresence(guildID string, presence *discordgo.Presence) error

SetPresence provides a mock function with given fields: guildID, presence

func (*IState) SetRole

func (_m *IState) SetRole(guildID string, role *discordgo.Role) error

SetRole provides a mock function with given fields: guildID, role

func (*IState) SetSelfUser

func (_m *IState) SetSelfUser(user *discordgo.User) error

SetSelfUser provides a mock function with given fields: user

func (*IState) SetUser

func (_m *IState) SetUser(user *discordgo.User) error

SetUser provides a mock function with given fields: user

func (*IState) SetVoiceState

func (_m *IState) SetVoiceState(guildID string, vs *discordgo.VoiceState) error

SetVoiceState provides a mock function with given fields: guildID, vs

func (*IState) Shards

func (_m *IState) Shards(pool int) ([]*dgrs.Shard, error)

Shards provides a mock function with given fields: pool

func (*IState) Subscribe

func (_m *IState) Subscribe(channel string, handler func(func(interface{}) error)) func() error

Subscribe provides a mock function with given fields: channel, handler

func (*IState) SubscribeDMs

func (_m *IState) SubscribeDMs(handler func(*dgrs.DirectMessageEvent)) func() error

SubscribeDMs provides a mock function with given fields: handler

func (*IState) User

func (_m *IState) User(id string) (*discordgo.User, error)

User provides a mock function with given fields: id

func (*IState) UserGuilds

func (_m *IState) UserGuilds(id string) ([]string, error)

UserGuilds provides a mock function with given fields: id

func (*IState) Users

func (_m *IState) Users() ([]*discordgo.User, error)

Users provides a mock function with given fields:

func (*IState) VoiceState

func (_m *IState) VoiceState(guildID string, userID string) (*discordgo.VoiceState, error)

VoiceState provides a mock function with given fields: guildID, userID

func (*IState) VoiceStates

func (_m *IState) VoiceStates(guildID string) ([]*discordgo.VoiceState, error)

VoiceStates provides a mock function with given fields: guildID

type KarmaProvider

type KarmaProvider struct {
	mock.Mock
}

KarmaProvider is an autogenerated mock type for the Provider type

func NewKarmaProvider

func NewKarmaProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *KarmaProvider

NewKarmaProvider creates a new instance of KarmaProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*KarmaProvider) ApplyPenalty

func (_m *KarmaProvider) ApplyPenalty(guildID string, userID string) error

ApplyPenalty provides a mock function with given fields: guildID, userID

func (*KarmaProvider) CheckAndUpdate

func (_m *KarmaProvider) CheckAndUpdate(guildID string, executorID string, object *discordgo.User, value int) (bool, error)

CheckAndUpdate provides a mock function with given fields: guildID, executorID, object, value

func (*KarmaProvider) GetState

func (_m *KarmaProvider) GetState(guildID string) (bool, error)

GetState provides a mock function with given fields: guildID

func (*KarmaProvider) IsBlockListed

func (_m *KarmaProvider) IsBlockListed(guildID string, userID string) (bool, error)

IsBlockListed provides a mock function with given fields: guildID, userID

func (*KarmaProvider) Update

func (_m *KarmaProvider) Update(guildID string, userID string, executorID string, value int) error

Update provides a mock function with given fields: guildID, userID, executorID, value

type KenContext

type KenContext struct {
	mock.Mock
}

KenContext is an autogenerated mock type for the Context type

func NewKenContext

func NewKenContext(t interface {
	mock.TestingT
	Cleanup(func())
}) *KenContext

NewKenContext creates a new instance of KenContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*KenContext) Channel

func (_m *KenContext) Channel() (*discordgo.Channel, error)

Channel provides a mock function with given fields:

func (*KenContext) Defer

func (_m *KenContext) Defer() error

Defer provides a mock function with given fields:

func (*KenContext) FollowUp

func (_m *KenContext) FollowUp(wait bool, data *discordgo.WebhookParams) *ken.FollowUpMessageBuilder

FollowUp provides a mock function with given fields: wait, data

func (*KenContext) FollowUpEmbed

func (_m *KenContext) FollowUpEmbed(emb *discordgo.MessageEmbed) *ken.FollowUpMessageBuilder

FollowUpEmbed provides a mock function with given fields: emb

func (*KenContext) FollowUpError

func (_m *KenContext) FollowUpError(content string, title string) *ken.FollowUpMessageBuilder

FollowUpError provides a mock function with given fields: content, title

func (*KenContext) FollowUpMessage

func (_m *KenContext) FollowUpMessage(message string) *ken.FollowUpMessageBuilder

FollowUpMessage provides a mock function with given fields: message

func (*KenContext) Get

func (_m *KenContext) Get(key string) interface{}

Get provides a mock function with given fields: key

func (*KenContext) GetCommand

func (_m *KenContext) GetCommand() ken.Command

GetCommand provides a mock function with given fields:

func (*KenContext) GetEphemeral

func (_m *KenContext) GetEphemeral() bool

GetEphemeral provides a mock function with given fields:

func (*KenContext) GetEvent

func (_m *KenContext) GetEvent() *discordgo.InteractionCreate

GetEvent provides a mock function with given fields:

func (*KenContext) GetKen

func (_m *KenContext) GetKen() *ken.Ken

GetKen provides a mock function with given fields:

func (*KenContext) GetSession

func (_m *KenContext) GetSession() *discordgo.Session

GetSession provides a mock function with given fields:

func (*KenContext) Guild

func (_m *KenContext) Guild() (*discordgo.Guild, error)

Guild provides a mock function with given fields:

func (*KenContext) HandleSubCommands

func (_m *KenContext) HandleSubCommands(handler ...ken.CommandHandler) error

HandleSubCommands provides a mock function with given fields: handler

func (*KenContext) MessageCommand

func (_m *KenContext) MessageCommand() (ken.MessageCommand, bool)

MessageCommand provides a mock function with given fields:

func (*KenContext) Options

func (_m *KenContext) Options() ken.CommandOptions

Options provides a mock function with given fields:

func (*KenContext) ResetState

func (_m *KenContext) ResetState()

ResetState provides a mock function with given fields:

func (*KenContext) Respond

Respond provides a mock function with given fields: r

func (*KenContext) RespondEmbed

func (_m *KenContext) RespondEmbed(emb *discordgo.MessageEmbed) error

RespondEmbed provides a mock function with given fields: emb

func (*KenContext) RespondError

func (_m *KenContext) RespondError(content string, title string) error

RespondError provides a mock function with given fields: content, title

func (*KenContext) RespondMessage

func (_m *KenContext) RespondMessage(message string) error

RespondMessage provides a mock function with given fields: message

func (*KenContext) SetEphemeral

func (_m *KenContext) SetEphemeral(v bool)

SetEphemeral provides a mock function with given fields: v

func (*KenContext) SlashCommand

func (_m *KenContext) SlashCommand() (ken.SlashCommand, bool)

SlashCommand provides a mock function with given fields:

func (*KenContext) User

func (_m *KenContext) User() *discordgo.User

User provides a mock function with given fields:

func (*KenContext) UserCommand

func (_m *KenContext) UserCommand() (ken.UserCommand, bool)

UserCommand provides a mock function with given fields:

type KenState

type KenState struct {
	mock.Mock
}

KenState is an autogenerated mock type for the State type

func NewKenState

func NewKenState(t interface {
	mock.TestingT
	Cleanup(func())
}) *KenState

NewKenState creates a new instance of KenState. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*KenState) Channel

func (_m *KenState) Channel(s *discordgo.Session, id string) (*discordgo.Channel, error)

Channel provides a mock function with given fields: s, id

func (*KenState) Guild

func (_m *KenState) Guild(s *discordgo.Session, id string) (*discordgo.Guild, error)

Guild provides a mock function with given fields: s, id

func (*KenState) Role

func (_m *KenState) Role(s *discordgo.Session, gID string, id string) (*discordgo.Role, error)

Role provides a mock function with given fields: s, gID, id

func (*KenState) SelfUser

func (_m *KenState) SelfUser(s *discordgo.Session) (*discordgo.User, error)

SelfUser provides a mock function with given fields: s

func (*KenState) User

func (_m *KenState) User(s *discordgo.Session, id string) (*discordgo.User, error)

User provides a mock function with given fields: s, id

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func NewLogger

func NewLogger(t interface {
	mock.TestingT
	Cleanup(func())
}) *Logger

NewLogger creates a new instance of Logger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Logger) Debugf

func (_m *Logger) Debugf(guildID string, message string, data ...interface{}) error

Debugf provides a mock function with given fields: guildID, message, data

func (*Logger) Errorf

func (_m *Logger) Errorf(guildID string, message string, data ...interface{}) error

Errorf provides a mock function with given fields: guildID, message, data

func (*Logger) Fatalf

func (_m *Logger) Fatalf(guildID string, message string, data ...interface{}) error

Fatalf provides a mock function with given fields: guildID, message, data

func (*Logger) Infof

func (_m *Logger) Infof(guildID string, message string, data ...interface{}) error

Infof provides a mock function with given fields: guildID, message, data

func (*Logger) Section

func (_m *Logger) Section(module string) guildlog.Logger

Section provides a mock function with given fields: module

func (*Logger) Warnf

func (_m *Logger) Warnf(guildID string, message string, data ...interface{}) error

Warnf provides a mock function with given fields: guildID, message, data

type PermissionsProvider

type PermissionsProvider struct {
	mock.Mock
}

PermissionsProvider is an autogenerated mock type for the Provider type

func NewPermissionsProvider

func NewPermissionsProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *PermissionsProvider

NewPermissionsProvider creates a new instance of PermissionsProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PermissionsProvider) Before

func (_m *PermissionsProvider) Before(ctx *ken.Ctx) (bool, error)

Before provides a mock function with given fields: ctx

func (*PermissionsProvider) CheckPermissions

func (_m *PermissionsProvider) CheckPermissions(s discordutil.ISession, guildID string, userID string, dns ...string) (bool, bool, error)

CheckPermissions provides a mock function with given fields: s, guildID, userID, dns

func (*PermissionsProvider) CheckSubPerm

func (_m *PermissionsProvider) CheckSubPerm(ctx ken.Context, subDN string, explicit bool, message ...string) (bool, error)

CheckSubPerm provides a mock function with given fields: ctx, subDN, explicit, message

func (*PermissionsProvider) GetMemberPermission

func (_m *PermissionsProvider) GetMemberPermission(s discordutil.ISession, guildID string, memberID string) (pkgpermissions.PermissionArray, error)

GetMemberPermission provides a mock function with given fields: s, guildID, memberID

func (*PermissionsProvider) GetPermissions

func (_m *PermissionsProvider) GetPermissions(s discordutil.ISession, guildID string, userID string) (pkgpermissions.PermissionArray, bool, error)

GetPermissions provides a mock function with given fields: s, guildID, userID

func (*PermissionsProvider) HandleWs

func (_m *PermissionsProvider) HandleWs(s discordutil.ISession, required string) func(*fiber.Ctx) error

HandleWs provides a mock function with given fields: s, required

type ReportProvider

type ReportProvider struct {
	mock.Mock
}

ReportProvider is an autogenerated mock type for the Provider type

func NewReportProvider

func NewReportProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReportProvider

NewReportProvider creates a new instance of ReportProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ReportProvider) ExpireExpiredReports

func (_m *ReportProvider) ExpireExpiredReports() *multierror.MultiError

ExpireExpiredReports provides a mock function with given fields:

func (*ReportProvider) ExpireLastReport

func (_m *ReportProvider) ExpireLastReport(guildID string, victimID string, typ models.ReportType) error

ExpireLastReport provides a mock function with given fields: guildID, victimID, typ

func (*ReportProvider) PushBan

func (_m *ReportProvider) PushBan(rep models.Report) (models.Report, error)

PushBan provides a mock function with given fields: rep

func (*ReportProvider) PushKick

func (_m *ReportProvider) PushKick(rep models.Report) (models.Report, error)

PushKick provides a mock function with given fields: rep

func (*ReportProvider) PushMute

func (_m *ReportProvider) PushMute(rep models.Report) (models.Report, error)

PushMute provides a mock function with given fields: rep

func (*ReportProvider) PushReport

func (_m *ReportProvider) PushReport(rep models.Report) (models.Report, error)

PushReport provides a mock function with given fields: rep

func (*ReportProvider) RevokeMute

func (_m *ReportProvider) RevokeMute(guildID string, executorID string, victimID string, reason string) (*discordgo.MessageEmbed, error)

RevokeMute provides a mock function with given fields: guildID, executorID, victimID, reason

func (*ReportProvider) RevokeReport

func (_m *ReportProvider) RevokeReport(rep models.Report, executorID string, reason string, wsPublicAddr string) (*discordgo.MessageEmbed, error)

RevokeReport provides a mock function with given fields: rep, executorID, reason, wsPublicAddr

func (*ReportProvider) UnbanReport

func (_m *ReportProvider) UnbanReport(unbanReq models.UnbanRequest, executorID string, reason string, isUnban bool) (*discordgo.MessageEmbed, error)

UnbanReport provides a mock function with given fields: unbanReq, executorID, reason, isUnban

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage

func NewStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storage

NewStorage creates a new instance of Storage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Storage) BucketExists

func (_m *Storage) BucketExists(name string) (bool, error)

BucketExists provides a mock function with given fields: name

func (*Storage) Connect

func (_m *Storage) Connect(cfg config.Provider) error

Connect provides a mock function with given fields: cfg

func (*Storage) CreateBucket

func (_m *Storage) CreateBucket(name string, location ...string) error

CreateBucket provides a mock function with given fields: name, location

func (*Storage) CreateBucketIfNotExists

func (_m *Storage) CreateBucketIfNotExists(name string, location ...string) error

CreateBucketIfNotExists provides a mock function with given fields: name, location

func (*Storage) DeleteObject

func (_m *Storage) DeleteObject(bucketName string, objectName string) error

DeleteObject provides a mock function with given fields: bucketName, objectName

func (*Storage) GetObject

func (_m *Storage) GetObject(bucketName string, objectName string) (io.ReadCloser, int64, error)

GetObject provides a mock function with given fields: bucketName, objectName

func (*Storage) PutObject

func (_m *Storage) PutObject(bucketName string, objectName string, reader io.Reader, objectSize int64, mimeType string) error

PutObject provides a mock function with given fields: bucketName, objectName, reader, objectSize, mimeType

func (*Storage) Status

func (_m *Storage) Status() error

Status provides a mock function with given fields:

type TimeProvider

type TimeProvider struct {
	mock.Mock
}

TimeProvider is an autogenerated mock type for the Provider type

func NewTimeProvider

func NewTimeProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *TimeProvider

NewTimeProvider creates a new instance of TimeProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TimeProvider) Now

func (_m *TimeProvider) Now() time.Time

Now provides a mock function with given fields:

type VerificationProvider

type VerificationProvider struct {
	mock.Mock
}

VerificationProvider is an autogenerated mock type for the Provider type

func NewVerificationProvider

func NewVerificationProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *VerificationProvider

NewVerificationProvider creates a new instance of VerificationProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VerificationProvider) EnqueueVerification

func (_m *VerificationProvider) EnqueueVerification(member discordgo.Member) error

EnqueueVerification provides a mock function with given fields: member

func (*VerificationProvider) GetEnabled

func (_m *VerificationProvider) GetEnabled(guildID string) (bool, error)

GetEnabled provides a mock function with given fields: guildID

func (*VerificationProvider) IsVerified

func (_m *VerificationProvider) IsVerified(userID string) (bool, error)

IsVerified provides a mock function with given fields: userID

func (*VerificationProvider) KickRoutine

func (_m *VerificationProvider) KickRoutine()

KickRoutine provides a mock function with given fields:

func (*VerificationProvider) SetEnabled

func (_m *VerificationProvider) SetEnabled(guildID string, enabled bool) error

SetEnabled provides a mock function with given fields: guildID, enabled

func (*VerificationProvider) Verify

func (_m *VerificationProvider) Verify(userID string) error

Verify provides a mock function with given fields: userID

Jump to

Keyboard shortcuts

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