Skip to content

Commit

Permalink
test: fixed emoji get unittest. It failed because discord's respond d…
Browse files Browse the repository at this point in the history
…oesn't include the user which created the emoji on creation
  • Loading branch information
Commandserver committed May 17, 2023
1 parent 2971c91 commit a580324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unittest/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ Markdown lol \\|\\|spoiler\\|\\| \\~\\~strikethrough\\~\\~ \\`small \\*code\\* b
return;
}
auto fetched = event.get<dpp::emoji>();
if (created.id == fetched.id && created.name == fetched.name && created.flags == fetched.flags && created.user_id == fetched.user_id) {
if (created.id == fetched.id && created.name == fetched.name && created.flags == fetched.flags) {
set_test("EMOJI_GET", true);
}

Expand Down

0 comments on commit a580324

Please sign in to comment.