This commit is contained in:
parent
e3ccc56dba
commit
34564140f5
@ -31,12 +31,12 @@ func requestCommandFunc(ctx disgoman.Context, args []string) {
|
|||||||
requestMsg := strings.Join(args, " ")
|
requestMsg := strings.Join(args, " ")
|
||||||
author, err := services.UserService.GetOrCreateUser(ctx.Message.Author.ID)
|
author, err := services.UserService.GetOrCreateUser(ctx.Message.Author.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
discord_utils.SendErrorMessage(ctx, "Error creating the request", err)
|
discord_utils.SendErrorMessage(ctx, "Error creating the request. Could not get user.", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
channel, err := services.ChannelService.GetOrCreateChannel(ctx.Message.ChannelID, ctx.Guild.ID)
|
channel, err := services.ChannelService.GetOrCreateChannel(ctx.Message.ChannelID, ctx.Guild.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
discord_utils.SendErrorMessage(ctx, "Error creating the request", err)
|
discord_utils.SendErrorMessage(ctx, "Error creating the request. Could not get channel.", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
int64ID, _ := strconv.ParseInt(ctx.Message.ID, 10, 64)
|
int64ID, _ := strconv.ParseInt(ctx.Message.ID, 10, 64)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user