1
0
Fork 0
mirror of https://github.com/MedzikUser/go-cdn synced 2024-08-15 03:19:36 +00:00
go-cdn/discord/deleteMsg.go
Medzik 87c7dc4f8f Added YML config and More
- Discord Bot: Added YML config and moved bot settings from DB to this file
- Error logs names has been renames
- Discord Bot: Added upload from multi attachments
- Update README, Makefile, go.mod and .gitignore
2021-07-15 14:33:17 +02:00

16 lines
318 B
Go

package discord
import (
"time"
"github.com/andersfylling/disgord"
"gitlab.com/gaming0skar123/go/cdn/common"
)
func deleteMsg(s disgord.Session, m *disgord.Message, t time.Duration) {
go func() {
time.Sleep(t)
err := s.Channel(m.ChannelID).Message(m.ID).Delete()
common.CheckErr(err, "delete msg")
}()
}