refactor(cmd): use io.WriteString instead

This commit is contained in:
ayn2op 2025-06-17 12:43:08 -04:00
parent 6885a3fb79
commit 6aee4a08e3

View file

@ -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
}
}