From 6ece6e72ff246acd3e85827fa3fdb82af7b6d12a Mon Sep 17 00:00:00 2001 From: "diamondburned (Forefront)" Date: Sun, 3 May 2020 19:13:58 -0700 Subject: [PATCH] API: Added 'Raw' which describes that type better --- bot/arguments.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bot/arguments.go b/bot/arguments.go index 8ac97b2..71b54ee 100644 --- a/bot/arguments.go +++ b/bot/arguments.go @@ -82,14 +82,14 @@ type CustomParser interface { CustomParse(arguments string) error } -// Arguments implements the CustomParser interface, which sets all the +// RawArguments implements the CustomParser interface, which sets all the // arguments into it as raw as it could. -type Arguments string +type RawArguments string -var _ CustomParser = (*Arguments)(nil) +var _ CustomParser = (*RawArguments)(nil) -func (a *Arguments) CustomParse(arguments string) error { - *a = Arguments(arguments) +func (a *RawArguments) CustomParse(arguments string) error { + *a = RawArguments(arguments) return nil }