Add view command and update utils
Some checks are pending
CI / build (push) Waiting to run

This commit is contained in:
Dustin Pianalto 2021-02-23 23:42:02 -09:00
parent 0bf31a3e5d
commit 1a7d9b824f

View File

@ -346,6 +346,7 @@ func commentCommandFunc(ctx disgoman.Context, args []string) {
commentString = ""
}
}
commentStrings = append(commentStrings, commentString)
for _, c := range channels {
if c.Admin {
for _, s := range commentStrings {
@ -365,7 +366,7 @@ func commentCommandFunc(ctx disgoman.Context, args []string) {
request.ID,
discord_utils.GetChannelName(ctx, ctx.Channel.ID),
request.Content,
comment.Content,
message,
))
}
@ -439,6 +440,7 @@ func viewCommandFunc(ctx disgoman.Context, args []string) {
commentString = ""
}
}
commentStrings = append(commentStrings, commentString)
for _, c := range commentStrings {
_, _ = ctx.Send(c)
}