Drn 2 years ago
parent
commit
0c97c6ed25
1 changed files with 1 additions and 3 deletions
  1. 1 3
      main.go

+ 1 - 3
main.go

@@ -341,9 +341,7 @@ func main() {
 	var autorunHistoryChannels []arh
 	// Compile list of channels to autorun history
 	for _, channel := range getAllRegisteredChannels() {
-		var fakeMessage *discordgo.Message
-		fakeMessage.ChannelID = channel
-		channelConfig := getSource(fakeMessage)
+		channelConfig := getSource(&discordgo.Message{ChannelID: channel})
 		if channelConfig.OverwriteAutorunHistory != nil {
 			if *channelConfig.OverwriteAutorunHistory {
 				var autorunHistoryChannel arh