Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWarningToID ¶
AddWarningToID logs a new warning for a given user
func SetModPing ¶
SetModPing sets the user's ability to use the moderator ping functionality
Types ¶
type ChatUser ¶
ChatUser represents a member of the chat
func ChatUserFromID ¶
ChatUserFromID finds a user with the provided ID
func ChatUserFromTGID ¶
ChatUserFromTGID finds a user with the provided TGID
func ChatUserFromTGIDNoUpd ¶
ChatUserFromTGIDNoUpd finds a user with the provided TGID without updating the database
func LookupAlias ¶
LookupAlias finds a ChatUser even if only part of one of their aliases is provided
func SearchUserByUsername ¶
SearchUserByUsername finds a user with the provided username
type UserAlias ¶
UserAlias represents a name that a chat member went by
func GetAliases ¶
GetAliases finds aliases for a given ChatUser
func GetLatestAliasFromUserID ¶
GetLatestAliasFromUserID finds the most recently used alias for a given userID