Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chrigeeel/SatanGo
/ functions
Functions
505 in github.com/chrigeeel/SatanGo
⨍
Functions
505
◇
Types & classes
284
↳
Endpoints
6
↓ 511 callers
Function
Red
(data string)
colors/colors.go:27
↓ 332 callers
Function
Prefix
()
colors/colors.go:11
↓ 271 callers
Function
White
(data string)
colors/colors.go:39
↓ 189 callers
Function
TaskPrefix
(id int)
colors/colors.go:18
↓ 113 callers
Method
RequestWithBucketID
RequestWithBucketID makes a (GET/POST/...) Requests to Discord REST API with JSON data.
cooldiscord/restapi.go:50
↓ 74 callers
Function
Green
(data string)
colors/colors.go:31
↓ 73 callers
Function
unmarshal
(data []byte, v interface{})
cooldiscord/restapi.go:174
↓ 65 callers
Method
Close
Close closes a websocket and stops all listening/heartbeat goroutines. TODO: Add support for Voice WS/UDP
cooldiscord/wsapi.go:919
↓ 65 callers
Function
Yellow
(data string)
colors/colors.go:35
↓ 51 callers
Method
log
helper function that wraps msglog for the Session struct This adds a check to insure the message is only logged if the session log level is equal or h
cooldiscord/logging.go:71
↓ 51 callers
Method
log
helper function that wraps msglog for the VoiceConnection struct This adds a check to insure the message is only logged if the voice connection log le
cooldiscord/logging.go:84
↓ 40 callers
Function
registerInterfaceProvider
registerInterfaceProvider registers a provider so that DiscordGo can access it's New() method.
cooldiscord/event.go:46
↓ 34 callers
Method
New
New returns a new instance of the struct this event handler handles. This is called once per event. The struct is provided to all handlers of the same
cooldiscord/event.go:23
↓ 20 callers
Function
AskForSilent
()
utility/ask.go:15
↓ 20 callers
Method
Guild
Guild gets a guild by ID. Useful for querying if @me is in a guild: _, err := discordgo.Session.State.Guild(guildID) isInGuild := err == nil
cooldiscord/state.go:168
↓ 16 callers
Method
String
String returns a unique identifier of the form username#discriminator
cooldiscord/user.go:79
↓ 15 callers
Function
askFor
(question string)
loader/profiles.go:112
↓ 14 callers
Function
RemoveIndex
(profiles []loader.ProfileStruct, s int)
utility/utility.go:8
↓ 12 callers
Method
Channel
Channel gets a channel by ID, it will look in all guilds and private channels.
cooldiscord/state.go:545
↓ 11 callers
Function
NewSuccess
(wurl string, successData SuccessStruct)
utility/success.go:19
↓ 9 callers
Function
AskForProfiles
(profiles []loader.ProfileStruct)
utility/ask.go:22
↓ 8 callers
Method
Open
Open creates a websocket connection to Discord. See: https://discord.com/developers/docs/topics/gateway#connecting
cooldiscord/wsapi.go:50
↓ 8 callers
Method
Type
Type returns the type of event this handler belongs to.
cooldiscord/event.go:6
↓ 7 callers
Function
CoolClient
(proxy string)
utility/coolclient.go:14
↓ 6 callers
Function
AuthKeySilent
(key string)
loader/auth.go:122
↓ 6 callers
Method
ChannelMessageSendComplex
ChannelMessageSendComplex sends a message to the given channel. channelID : The ID of a Channel. data : The message struct to send.
cooldiscord/restapi.go:1540
↓ 6 callers
Function
GetPw2
(site string)
modules/getpw/getpw.go:30
↓ 6 callers
Function
ocr
(input_image)
tlapi/app.py:82
↓ 6 callers
Function
ocr
(input_image)
tlapi/perfCharDone/app.py:203
↓ 5 callers
Function
AskForPwShare
()
modules/getpw/pwshare.go:133
↓ 5 callers
Method
Member
Member gets a member by ID from a guild.
cooldiscord/state.go:354
↓ 5 callers
Method
handleEvent
Handles an event type by calling internal methods, firing handlers and firing the interface{} event.
cooldiscord/event.go:187
↓ 4 callers
Method
Guild
------------------------------------------------------------------------------------------------ Functions specific to Discord Guilds ----------------
cooldiscord/restapi.go:577
↓ 4 callers
Method
Handle
Handle is called whenever an event of Type() happens. It is the receivers responsibility to type assert that the interface is the expected struct.
cooldiscord/event.go:11
↓ 4 callers
Method
MemberAdd
TODO: Consider moving Guild state update methods onto *Guild. MemberAdd adds a member to the current world state, or updates it if it already exists.
cooldiscord/state.go:284
↓ 4 callers
Function
PWSharingSend2
(p PWStruct)
modules/getpw/pwshare.go:125
↓ 3 callers
Method
APIName
APIName returns an correctly formatted API name for use in the MessageReactions endpoints.
cooldiscord/structs.go:370
↓ 3 callers
Function
AuthRoutine
(key string)
loader/auth.go:168
↓ 3 callers
Method
Close
Close closes the voice ws and udp connections
cooldiscord/voice.go:165
↓ 3 callers
Function
LoadProfiles
()
loader/profiles.go:44
↓ 3 callers
Method
LockBucketObject
LockBucketObject Locks an already resolved bucket until a request can be made
cooldiscord/ratelimit.go:95
↓ 3 callers
Method
Release
Release unlocks the bucket and reads the headers to update the buckets ratelimit info and locks up the whole thing in case if there's a global ratelim
cooldiscord/ratelimit.go:122
↓ 3 callers
Method
UpdateStatusComplex
UpdateStatusComplex allows for sending the raw status update data untouched by discordgo.
cooldiscord/wsapi.go:385
↓ 3 callers
Function
memberPermissions
Calculates the permissions for a member. https://support.discord.com/hc/en-us/articles/206141927-How-is-the-permission-hierarchy-structured-
cooldiscord/restapi.go:506
↓ 3 callers
Function
newUpdateStatusData
(idle int, activityType ActivityType, name, url string)
cooldiscord/wsapi.go:336
↓ 3 callers
Method
onEvent
onEvent is the "event handler" for all messages received on the Discord Gateway API websocket connection. If you use the AddHandler() function to reg
cooldiscord/wsapi.go:470
↓ 3 callers
Method
reconnect
()
cooldiscord/wsapi.go:862
↓ 3 callers
Method
relationshipCreate
relationshipCreate creates a new relationship. (I.e. send or accept a friend request, block a user.) relationshipType : 1 = friend, 2 = blocked, 3 = i
cooldiscord/restapi.go:2290
↓ 3 callers
Method
request
request makes a (GET/POST/...) Requests to Discord REST API. Sequence is the sequence number, if it fails with a 502 it will retry with sequence+1 unt
cooldiscord/restapi.go:65
↓ 3 callers
Function
setGuildIds
setGuildIds will set the GuildID on all the members of a guild. This is done as event data does not have it set.
cooldiscord/event.go:203
↓ 2 callers
Function
AESDecrypt
(plaintext string, secret string)
loader/auth.go:203
↓ 2 callers
Function
AESEncrypt
(plaintext string, secret string)
loader/auth.go:187
↓ 2 callers
Method
Channel
------------------------------------------------------------------------------------------------ Functions specific to Discord Channels --------------
cooldiscord/restapi.go:1406
↓ 2 callers
Method
ChannelAdd
ChannelAdd adds a channel to the current world state, or updates it if it already exists. Channels may exist either as PrivateChannels or inside a gui
cooldiscord/state.go:452
↓ 2 callers
Method
ChannelMessageEditComplex
ChannelMessageEditComplex edits an existing message, replacing it entirely with the given MessageEdit struct
cooldiscord/restapi.go:1661
↓ 2 callers
Method
CloseWithCode
CloseWithCode closes a websocket using the provided closeCode and stops all listening/heartbeat goroutines. TODO: Add support for Voice WS/UDP connect
cooldiscord/wsapi.go:926
↓ 2 callers
Method
ContentWithMentionsReplaced
ContentWithMentionsReplaced will replace all @<id> mentions with the username of the mention.
cooldiscord/message.go:388
↓ 2 callers
Function
CreateProfile
(profiles []ProfileStruct)
loader/profiles.go:85
↓ 2 callers
Method
GuildAdd
GuildAdd adds a guild to the current world state, or updates it if it already exists.
cooldiscord/state.go:83
↓ 2 callers
Function
Input
(userData loader.UserDataStruct, profiles []loader.ProfileStruct, proxies []string, mode string)
modules/tldash/input.go:21
↓ 2 callers
Function
LoadProxies
()
loader/loader.go:73
↓ 2 callers
Function
Login
(hyperAccountId string, site string, profiles []loader.ProfileStruct)
modules/hyper/login.go:17
↓ 2 callers
Method
Login
------------------------------------------------------------------------------------------------ Functions specific to Discord Sessions --------------
cooldiscord/restapi.go:194
↓ 2 callers
Method
Message
Message gets a message by channel and message ID.
cooldiscord/state.go:752
↓ 2 callers
Method
MessageAdd
MessageAdd adds a message to the current world state, or updates it if it exists. If the channel cannot be found, the message is discarded. Messages a
cooldiscord/state.go:621
↓ 2 callers
Function
NewMessageEdit
NewMessageEdit returns a MessageEdit struct, initialized with the Channel and ID.
cooldiscord/message.go:174
↓ 2 callers
Function
NewState
NewState creates an empty state.
cooldiscord/state.go:55
↓ 2 callers
Method
PresenceAdd
PresenceAdd adds a presence to the current world state, or updates it if it already exists.
cooldiscord/state.go:185
↓ 2 callers
Method
RoleAdd
RoleAdd adds a role to the current world state, or updates it if it already exists.
cooldiscord/state.go:377
↓ 2 callers
Function
Solvebp
(domain string)
modules/hyper/bp.go:19
↓ 2 callers
Method
User
------------------------------------------------------------------------------------------------ Functions specific to Discord Users -----------------
cooldiscord/restapi.go:274
↓ 2 callers
Function
constCase
(name string)
cooldiscord/tools/cmd/eventhandlers/main.go:101
↓ 2 callers
Method
createMemberMap
(guild *Guild)
cooldiscord/state.go:73
↓ 2 callers
Function
firstRoleColorColor
(guild *Guild, memberRoles []string)
cooldiscord/state.go:1083
↓ 2 callers
Method
handle
Handles calling permanent and once handlers for an event type.
cooldiscord/event.go:164
↓ 2 callers
Function
handlerForInterface
(handler interface{})
cooldiscord/eventhandlers.go:916
↓ 2 callers
Method
identify
identify sends the identify packet to the gateway
cooldiscord/wsapi.go:754
↓ 2 callers
Method
messageRemoveByID
messageRemoveByID removes a message by channelID and messageID from the world state.
cooldiscord/state.go:681
↓ 2 callers
Function
msglog
msglog provides package wide logging consistency for discordgo the format, a... portion this command follows that of fmt.Printf msgL : LogLevel of
cooldiscord/logging.go:46
↓ 2 callers
Method
open
Open opens a voice connection. This should be called after VoiceChannelJoin is used and the data VOICE websocket events are captured.
cooldiscord/voice.go:278
↓ 2 callers
Function
parse
()
tlapi/perfCharDone/app.py:83
↓ 2 callers
Method
reconnect
Reconnect will close down a voice connection then immediately try to reconnect to that session. NOTE : This func is messy and a WIP while I find what
cooldiscord/voice.go:854
↓ 2 callers
Method
removeEventHandlerInstance
removeEventHandler instance removes an event handler instance.
cooldiscord/event.go:144
↓ 2 callers
Method
requestGuildMembers
(data requestGuildMembersData)
cooldiscord/wsapi.go:446
↓ 2 callers
Function
taskfcfsCool
(wg *sync.WaitGroup, userData loader.UserDataStruct, id int, releaseId string, password string, paid bool, col
modules/hyper/taskfcfscool.go:17
↓ 1 callers
Function
AESDecrypt
(plaintext string, secret string)
utility/utility.go:28
↓ 1 callers
Function
AESEncrypt
(plaintext string, secret string)
utility/utility.go:12
↓ 1 callers
Method
AddHandler
AddHandler allows you to add an event handler that will be fired anytime the Discord WSAPI event that matches the function fires. The first parameter
cooldiscord/event.go:120
↓ 1 callers
Function
AuthKeyDirect
(key string, silent bool)
loader/auth.go:64
↓ 1 callers
Function
CallClear
()
menus/clear.go:28
↓ 1 callers
Method
ChannelEditComplex
ChannelEditComplex edits an existing channel, replacing the parameters entirely with ChannelEdit struct channelID : The ID of a Channel data
cooldiscord/restapi.go:1428
↓ 1 callers
Method
ChannelMessageDelete
ChannelMessageDelete deletes a message from the Channel.
cooldiscord/restapi.go:1684
↓ 1 callers
Method
ChannelRemove
ChannelRemove removes a channel from current world state.
cooldiscord/state.go:490
↓ 1 callers
Method
ChannelVoiceJoin
ChannelVoiceJoin joins the session user to a voice channel. gID : Guild ID of the channel to join. cID : Channel ID of the channel to join. m
cooldiscord/wsapi.go:617
↓ 1 callers
Method
ChannelVoiceJoinManual
ChannelVoiceJoinManual initiates a voice session to a voice channel, but does not complete it. This should only be used when the VoiceServerUpdate wi
cooldiscord/wsapi.go:664
↓ 1 callers
Function
CheckForUpdate
(userData UserDataStruct)
loader/update.go:23
↓ 1 callers
Function
CreateSettings
()
loader/loader.go:22
↓ 1 callers
Method
EmojiAdd
EmojiAdd adds an emoji to the current world state.
cooldiscord/state.go:584
↓ 1 callers
Method
EmojisAdd
EmojisAdd adds multiple emojis to the world state.
cooldiscord/state.go:609
↓ 1 callers
Method
Error
()
cooldiscord/types.go:55
next →
1–100 of 505, ranked by callers