feat:Add ephemeral

This commit is contained in:
Siwoo Jeon 2025-06-21 10:04:03 +09:00
parent 294511cf46
commit 3997617519
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA

View file

@ -169,6 +169,7 @@ func (d *DiscommandStruct) ChatInputRun(name string, s *discordgo.Session, inter
utils.NewMessageSender(i). utils.NewMessageSender(i).
AddComponents(utils.GetErrorContainer(discordgo.TextDisplay{Content: "해당 명령어는 개발자만 사용 가능해요."})). AddComponents(utils.GetErrorContainer(discordgo.TextDisplay{Content: "해당 명령어는 개발자만 사용 가능해요."})).
SetComponentsV2(true). SetComponentsV2(true).
SetEphemeral(true).
SetReply(true). SetReply(true).
Send() Send()
return return
@ -178,6 +179,7 @@ func (d *DiscommandStruct) ChatInputRun(name string, s *discordgo.Session, inter
utils.NewMessageSender(i). utils.NewMessageSender(i).
AddComponents(utils.GetUserIsNotRegisteredErrContainer(configs.Config.Bot.Prefix)). AddComponents(utils.GetUserIsNotRegisteredErrContainer(configs.Config.Bot.Prefix)).
SetComponentsV2(true). SetComponentsV2(true).
SetEphemeral(true).
SetReply(true). SetReply(true).
Send() Send()
return return