rename handlers
This commit is contained in:
parent
5c54d10556
commit
68d88f7036
|
|
@ -29,7 +29,7 @@ func NewHandler(
|
|||
}
|
||||
}
|
||||
|
||||
func (h *Handler) ping(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||
func (h *Handler) Ping(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||
|
||||
err := s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
|
||||
Type: discordgo.InteractionResponseChannelMessageWithSource,
|
||||
|
|
@ -148,7 +148,7 @@ func (h *Handler) ListenPosts(s *discordgo.Session, th *discordgo.ThreadCreate)
|
|||
|
||||
// handleTaskBurrons
|
||||
// .. handler function to work with the Action Buttons over a task
|
||||
func (h *Handler) handleTaskButton(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||
func (h *Handler) HandleTaskButtons(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||
|
||||
// Send an empty interaction response; ----------------------------------------------------------------
|
||||
s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
|
||||
|
|
@ -237,7 +237,7 @@ func (h *Handler) handleTaskButton(s *discordgo.Session, i *discordgo.Interactio
|
|||
// }
|
||||
}
|
||||
|
||||
func (h *Handler) createFolderHandler(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||
func (h *Handler) CreateFolder(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||
const (
|
||||
nameOption string = "folder_name"
|
||||
)
|
||||
|
|
@ -301,7 +301,7 @@ func (h *Handler) createFolderHandler(s *discordgo.Session, i *discordgo.Interac
|
|||
h.defaultFollowUp(result, s, i)
|
||||
}
|
||||
|
||||
func (h *Handler) createRepoHandler(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||
func (h *Handler) CreateGit(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||
const (
|
||||
repoType = "repo_type"
|
||||
projectRepo = "project_repo"
|
||||
|
|
@ -378,7 +378,7 @@ func (h *Handler) createRepoHandler(s *discordgo.Session, i *discordgo.Interacti
|
|||
}
|
||||
|
||||
// PROJECT
|
||||
func (h *Handler) getInfo(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||
func (h *Handler) ProjectInfo(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||
|
||||
// Моментальный ответ для избежания столкновения с протуханием токена
|
||||
initialResponse := discordgo.InteractionResponse{
|
||||
|
|
@ -417,7 +417,7 @@ func (h *Handler) getInfo(s *discordgo.Session, i *discordgo.InteractionCreate)
|
|||
h.defaultFollowUp(result, s, i)
|
||||
}
|
||||
|
||||
func (h *Handler) initProjectFromChannel(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||
func (h *Handler) InitChannelAsProject(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||
|
||||
// Моментальный ответ для избежания столкновения с протуханием токена
|
||||
initialResponse := discordgo.InteractionResponse{
|
||||
|
|
@ -479,7 +479,7 @@ func (h *Handler) initProjectFromChannel(s *discordgo.Session, i *discordgo.Inte
|
|||
h.defaultFollowUp(result, s, i)
|
||||
}
|
||||
|
||||
func (h *Handler) createTicketHandler(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||
func (h *Handler) CreateTicket(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||
|
||||
// Моментальный ответ для избежания столкновения с протуханием токена
|
||||
initialResponse := discordgo.InteractionResponse{
|
||||
|
|
|
|||
Loading…
Reference in New Issue