added dm channel support.

This commit is contained in:
5elenay
2021-08-28 18:38:26 +03:00
parent a2e5584d93
commit 10de8762c7
4 changed files with 47 additions and 61 deletions

View File

@@ -108,12 +108,7 @@ func (m *Message) Edit(content string) error {
// Delete the message.
func (m Message) Delete() error {
_, err := m.Client.Request("DELETE", "/channels/"+m.ChannelId+"/messages/"+m.Id, []byte{})
if err != nil {
return err
}
return nil
return err
}
// Reply to the message.