-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from DisgoOrg/development
new release
- Loading branch information
Showing
75 changed files
with
1,813 additions
and
1,529 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package api | ||
|
||
// ButtonInteraction is a specific Interaction when CLicked on Button(s) | ||
type ButtonInteraction struct { | ||
*Interaction | ||
Message *Message `json:"message,omitempty"` | ||
Data *ButtonInteractionData `json:"data,omitempty"` | ||
} | ||
|
||
// DeferEdit replies to the api.ButtonInteraction with api.InteractionResponseTypeDeferredUpdateMessage and cancels the loading state | ||
func (i *ButtonInteraction) DeferEdit() error { | ||
return i.Respond(InteractionResponseTypeDeferredUpdateMessage, nil) | ||
} | ||
|
||
// Edit replies to the api.ButtonInteraction with api.InteractionResponseTypeUpdateMessage & api.MessageCreate which edits the original api.Message | ||
func (i *ButtonInteraction) Edit(messageCreate MessageCreate) error { | ||
return i.Respond(InteractionResponseTypeUpdateMessage, messageCreate) | ||
} | ||
|
||
// ButtonInteractionData is the command data payload | ||
type ButtonInteractionData struct { | ||
CustomID string `json:"custom_id"` | ||
ComponentType ComponentType `json:"component_type"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.