Compare commits

...
2 Commits
Author SHA1 Message Date
Dustin Pianalto 9e1702fa4b fix create request command
CI / build (push) Has been cancelled
2021-01-25 02:31:36 -09:00
Dustin Pianalto b6f90b61c5 fix create request command
CI / build (push) Has been cancelled
2021-01-25 02:27:56 -09:00
+2 -2
View File
@@ -84,7 +84,7 @@ func requestCommandFunc(ctx disgoman.Context, args []string) {
"In: %s", "In: %s",
mentionRolesString, mentionRolesString,
request.ID, request.ID,
ctx.Message.Author.Mention, ctx.Message.Author.Mention(),
request.Content, request.Content,
request.RequestedAt.UTC().Format(time.UnixDate), request.RequestedAt.UTC().Format(time.UnixDate),
ctx.Channel.Mention(), ctx.Channel.Mention(),
@@ -95,7 +95,7 @@ func requestCommandFunc(ctx disgoman.Context, args []string) {
} }
_, err = ctx.Send(fmt.Sprintf("%s The admin have recieved your request.\n "+ _, err = ctx.Send(fmt.Sprintf("%s The admin have recieved your request.\n "+
"If you would like to close or add a comment to this request please reference ID `%v`", "If you would like to close or add a comment to this request please reference ID `%v`",
ctx.Message.Author.Mention, request.ID, ctx.Message.Author.Mention(), request.ID,
)) ))
if err != nil { if err != nil {
discord_utils.SendErrorMessage(ctx, "There was an error sending the message. The request was created.", err) discord_utils.SendErrorMessage(ctx, "There was an error sending the message. The request was created.", err)