mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-07-27 16:01:50 +00:00
Compare commits
6 commits
0e2f835819
...
6f1361bd89
Author | SHA1 | Date | |
---|---|---|---|
|
6f1361bd89 | ||
|
3a51367bf8 | ||
|
d0cb786fda | ||
|
0b9742a410 | ||
|
504343fb9d | ||
|
8fc9b2f028 |
|
@ -32,6 +32,7 @@ type CreateCommandData struct {
|
||||||
NoDMPermission bool `json:"-"`
|
NoDMPermission bool `json:"-"`
|
||||||
NoDefaultPermission bool `json:"-"`
|
NoDefaultPermission bool `json:"-"`
|
||||||
Type discord.CommandType `json:"type,omitempty"`
|
Type discord.CommandType `json:"type,omitempty"`
|
||||||
|
IntegrationTypes []discord.ApplicationIntegrationType `json:"integration_types,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c CreateCommandData) MarshalJSON() ([]byte, error) {
|
func (c CreateCommandData) MarshalJSON() ([]byte, error) {
|
||||||
|
|
|
@ -131,3 +131,10 @@ type InstallParams struct {
|
||||||
// Permissions is the permissions to request for the bot role.
|
// Permissions is the permissions to request for the bot role.
|
||||||
Permissions Permissions `json:"permissions,string"`
|
Permissions Permissions `json:"permissions,string"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ApplicationIntegrationType uint16
|
||||||
|
|
||||||
|
const (
|
||||||
|
ApplicationIntegrationTypeGuild ApplicationIntegrationType = iota
|
||||||
|
ApplicationIntegrationTypeUser
|
||||||
|
)
|
||||||
|
|
|
@ -62,6 +62,9 @@ type Command struct {
|
||||||
// Version is an autoincrementing version identifier updated during
|
// Version is an autoincrementing version identifier updated during
|
||||||
// substantial record changes
|
// substantial record changes
|
||||||
Version Snowflake `json:"version,omitempty"`
|
Version Snowflake `json:"version,omitempty"`
|
||||||
|
// Installation contexts where the command is available, only for
|
||||||
|
// globally-scoped commands.
|
||||||
|
IntegrationTypes []ApplicationIntegrationType `json:"integration_types,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Language is a string type for language codes, such as "en-US" or "fr". Refer
|
// Language is a string type for language codes, such as "en-US" or "fr". Refer
|
||||||
|
|
6
go.mod
6
go.mod
|
@ -5,8 +5,8 @@ go 1.18
|
||||||
require (
|
require (
|
||||||
github.com/gorilla/schema v1.4.1
|
github.com/gorilla/schema v1.4.1
|
||||||
github.com/gorilla/websocket v1.5.3
|
github.com/gorilla/websocket v1.5.3
|
||||||
golang.org/x/crypto v0.31.0
|
golang.org/x/crypto v0.32.0
|
||||||
golang.org/x/time v0.8.0
|
golang.org/x/time v0.9.0
|
||||||
)
|
)
|
||||||
|
|
||||||
require golang.org/x/sys v0.28.0 // indirect
|
require golang.org/x/sys v0.29.0 // indirect
|
||||||
|
|
12
go.sum
12
go.sum
|
@ -2,9 +2,9 @@ github.com/gorilla/schema v1.4.1 h1:jUg5hUjCSDZpNGLuXQOgIWGdlgrIdYvgQ0wZtdK1M3E=
|
||||||
github.com/gorilla/schema v1.4.1/go.mod h1:Dg5SSm5PV60mhF2NFaTV1xuYYj8tV8NOPRo4FggUMnM=
|
github.com/gorilla/schema v1.4.1/go.mod h1:Dg5SSm5PV60mhF2NFaTV1xuYYj8tV8NOPRo4FggUMnM=
|
||||||
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
|
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
|
||||||
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
|
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
|
||||||
golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U=
|
golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc=
|
||||||
golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
|
golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc=
|
||||||
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
|
golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=
|
||||||
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||||
golang.org/x/time v0.8.0 h1:9i3RxcPv3PZnitoVGMPDKZSq1xW1gK1Xy3ArNOGZfEg=
|
golang.org/x/time v0.9.0 h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY=
|
||||||
golang.org/x/time v0.8.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
|
golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
|
golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
|
||||||
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
|
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
|
||||||
golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||||
|
golang.org/x/sync v0.9.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||||
golang.org/x/term v0.24.0/go.mod h1:lOBK/LVxemqiMij05LGJ0tzNr8xlmwBRJ81PX6wVLH8=
|
golang.org/x/term v0.24.0/go.mod h1:lOBK/LVxemqiMij05LGJ0tzNr8xlmwBRJ81PX6wVLH8=
|
||||||
|
golang.org/x/term v0.26.0/go.mod h1:Si5m1o57C5nBNQo5z1iq+XDijt21BDBDp2bK0QI8e3E=
|
||||||
golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
|
golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
|
||||||
|
golang.org/x/text v0.20.0/go.mod h1:D4IsuqiFMhST5bX19pQ9ikHC2GsaKyk/oF+pn3ducp4=
|
||||||
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
|
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
|
||||||
|
|
Loading…
Reference in a new issue