mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-12-01 08:37:23 +00:00
discord: Fix InteractionOption.String
This commit is contained in:
parent
4023a58f67
commit
76ec9cd43d
|
|
@ -108,9 +108,9 @@ func (o InteractionOption) String() string {
|
||||||
val := string(o.Value)
|
val := string(o.Value)
|
||||||
s, err := strconv.Unquote(val)
|
s, err := strconv.Unquote(val)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return s
|
return val
|
||||||
}
|
}
|
||||||
return val
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o InteractionOption) Int() (int64, error) {
|
func (o InteractionOption) Int() (int64, error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue