Revert "fix: do not send message twice"
This reverts commit 0d886c34c2.
This commit is contained in:
parent
0d886c34c2
commit
f5df6fc092
2 changed files with 6 additions and 1 deletions
|
|
@ -95,6 +95,11 @@ func (mi *MessageInput) send() {
|
|||
if strings.HasPrefix(mi.GetTitle(), "[@]") {
|
||||
data.AllowedMentions.RepliedUser = option.True
|
||||
}
|
||||
|
||||
go func() {
|
||||
if _, err := discordState.SendMessageComplex(layout.guildsTree.selectedChannelID, data); err != nil {
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
go func() {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ func Load() error {
|
|||
}
|
||||
|
||||
path = filepath.Join(path, "logs.txt")
|
||||
file, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY, os.ModePerm)
|
||||
file, err := os.OpenFile(path, os.O_CREATE|os.O_APPEND, os.ModePerm)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue