From dafda812dde74d82f666a77861d4df1c4f956133 Mon Sep 17 00:00:00 2001 From: mavolin <48887425+mavolin@users.noreply.github.com> Date: Mon, 11 May 2020 23:32:48 +0200 Subject: [PATCH] Utils: allow inheritance for custom types --- utils/json/option/custom.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/json/option/custom.go b/utils/json/option/custom.go index 7ab04c2..f6c4eba 100644 --- a/utils/json/option/custom.go +++ b/utils/json/option/custom.go @@ -5,7 +5,7 @@ import "github.com/diamondburned/arikawa/discord" // ================================ Seconds ================================ // Seconds is the option type for discord.Seconds. -type Seconds *discord.Seconds +type Seconds = *discord.Seconds // ZeroSeconds are 0 Seconds. var ZeroSeconds = NewSeconds(0) @@ -16,7 +16,7 @@ func NewSeconds(s discord.Seconds) Seconds { return &s } // ================================ Color ================================ // Color is the option type for discord.Color. -type Color *discord.Color +type Color = *discord.Color // NewString creates a new Color with the value of the passed discord.Color. func NewColor(s discord.Color) Color { return &s }