wtf auth??

This commit is contained in:
41666 2025-03-26 21:08:15 -07:00
parent 607d7e121c
commit a3a1654030
14 changed files with 337 additions and 1 deletions

View file

@ -2,6 +2,7 @@ package interactions_test
import (
"fmt"
"net/url"
"testing"
"git.sapphic.engineer/roleypoly/v4/interactions"
@ -28,6 +29,10 @@ func TestCmdRoleypoly(t *testing.T) {
button := ir.Data.Components[0]
assert.Equal(t, fmt.Sprintf("%s/s/guild-id", i.PublicBaseURL), button.URL)
u, _ := url.Parse(i.PublicBaseURL)
hostname := u.Host
assert.Equal(t, fmt.Sprintf("Pick roles on %s", hostname), button.Label)
// test the command mentions
tests := map[string]string{
"See all the roles": "</2:pickable-roles>",