forked from CFC-Servers/cfc_chat_transit
Utilize struct correctly
This commit is contained in:
parent
f9b71c43a7
commit
10791c6287
@ -129,7 +129,7 @@ ChatTransit.AnticrashEvent = (eventText="Heavy lag detected!") =>
|
||||
Type: "anticrash_event"
|
||||
Data:
|
||||
Realm: Realm\GetString!
|
||||
Text: eventText
|
||||
Content: eventText
|
||||
SteamName: "CFC Anticrash"
|
||||
Avatar: ""
|
||||
|
||||
|
@ -96,7 +96,7 @@ func sendDisconnectMessage(discord *discordgo.Session, event EventStruct) {
|
||||
}
|
||||
|
||||
func sendAnticrashMessage(discord *discordgo.Session, event EventStruct) {
|
||||
sendEvent(discord, event, EventStruct.Data.Text, 0xE7373E, HALTED_EMOJI)
|
||||
sendEvent(discord, event, event.Data.Content, 0xE7373E, HALTED_EMOJI)
|
||||
}
|
||||
|
||||
func queueGroomer() {
|
||||
|
Loading…
Reference in New Issue
Block a user