Utilize struct correctly

This commit is contained in:
legokidlogan 2021-10-08 21:37:54 -06:00 committed by Brandon Sturgeon
parent f9b71c43a7
commit 10791c6287
2 changed files with 2 additions and 2 deletions

View File

@ -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: ""

View File

@ -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() {