From 68d88f7036b6115b311fb8860c79130e83b532bf Mon Sep 17 00:00:00 2001 From: naudachu Date: Wed, 22 Nov 2023 16:07:36 +0500 Subject: [PATCH] rename handlers --- client/discord/handler/discord_handler.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/client/discord/handler/discord_handler.go b/client/discord/handler/discord_handler.go index 6b87a0d..5556b17 100644 --- a/client/discord/handler/discord_handler.go +++ b/client/discord/handler/discord_handler.go @@ -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{