Browse Source

refactor(cmd): use io.WriteString instead

ayn2op 10 months ago
parent
commit
6aee4a08e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmd/messages_text.go

+ 1 - 1
cmd/messages_text.go

@@ -110,7 +110,7 @@ func (mt *messagesText) createMsg(msg discord.Message) {
 	if mt.cfg.HideBlockedUsers {
 		isBlocked := discordState.UserIsBlocked(msg.Author.ID)
 		if isBlocked {
-			fmt.Fprintln(mt, "[:red:b]Blocked message[:-:-]")
+			io.WriteString(mt, "[:red:b]Blocked message[:-:-]")
 			return
 		}
 	}