37 lines
487 B
Odin
37 lines
487 B
Odin
|
package discord
|
||
|
|
||
|
Payload :: struct {
|
||
|
type: int,
|
||
|
data: Message,
|
||
|
}
|
||
|
|
||
|
Webhook_Payload :: struct {
|
||
|
content: string,
|
||
|
}
|
||
|
|
||
|
Message :: struct {
|
||
|
content: string,
|
||
|
}
|
||
|
|
||
|
Interaction :: struct {
|
||
|
type: int,
|
||
|
data: Interaction_Data,
|
||
|
token: string,
|
||
|
}
|
||
|
|
||
|
Option :: struct {
|
||
|
name: string,
|
||
|
type: int,
|
||
|
value: string,
|
||
|
}
|
||
|
|
||
|
Interaction_Data :: struct {
|
||
|
name: string,
|
||
|
options: []Option,
|
||
|
}
|
||
|
|
||
|
Application :: struct {
|
||
|
verify_key: string,
|
||
|
id: string,
|
||
|
}
|