feat:Add ephemeral
This commit is contained in:
parent
294511cf46
commit
3997617519
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue