1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-12-01 11:12:48 +00:00
arikawa/utils/bot/extras/arguments/arguments.go

19 lines
371 B
Go
Raw Normal View History

2020-05-04 07:14:11 +00:00
package arguments
import (
"strings"
2021-09-22 17:56:35 +00:00
"github.com/diamondburned/arikawa/v3/utils/bot"
2020-05-04 07:14:11 +00:00
)
// Joined implements ManualParseable, in case you want all arguments but
// joined in a uniform way with spaces.
type Joined string
var _ bot.ManualParser = (*Joined)(nil)
func (j *Joined) ParseContent(args []string) error {
*j = Joined(strings.Join(args, " "))
return nil
}