Skip to content

Commit

Permalink
added channel Id on create post
Browse files Browse the repository at this point in the history
  • Loading branch information
shme7ev committed Dec 9, 2022
1 parent 99066d4 commit e0e16a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mockrest/guilds.go
Expand Up @@ -222,7 +222,9 @@ func (roundTripper *RoundTripper) guildChannelsPOST(w http.ResponseWriter, r *ht
return
}

ch := &discordgo.Channel{}
ch := &discordgo.Channel{
ID: randString(),
}

dec := json.NewDecoder(r.Body)
dec.DisallowUnknownFields()
Expand Down

0 comments on commit e0e16a0

Please sign in to comment.