Browse Source

Degoroutinize (*api.Client).SendMessage()

rigormorrtiss 4 năm trước cách đây
mục cha
commit
39234175a3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      discordo.go

+ 1 - 1
discordo.go

@@ -236,7 +236,7 @@ func onMessageInputFieldDone(k tcell.Key) {
 		}
 
 		messageInputField.SetText("")
-		go discordSession.SendMessage(currentChannel.ID, currentText)
+		discordSession.SendMessage(currentChannel.ID, currentText)
 	}
 }