Skip to content

Commit

Permalink
bot: rename DeleteMessages
Browse files Browse the repository at this point in the history
  • Loading branch information
demget committed Jun 10, 2024
1 parent c4fce10 commit c9cec21
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,11 +704,10 @@ func (b *Bot) Delete(msg Editable) error {
return err
}

// DeleteMessages deletes multiple messages simultaneously.
// DeleteMany deletes multiple messages simultaneously.
// If some of the specified messages can't be found, they are skipped.
func (b *Bot) DeleteMessages(msgs []Editable) error {
func (b *Bot) DeleteMany(msgs []Editable) error {
params := make(map[string]string)

embedMessages(params, msgs)

_, err := b.Raw("deleteMessages", params)
Expand Down

0 comments on commit c9cec21

Please sign in to comment.