mirror of
https://github.com/uowuo/abaddon.git
synced 2024-11-10 14:10:10 +00:00
fix some parameter ordering
This commit is contained in:
parent
587713f924
commit
6c4bdb51a3
@ -188,7 +188,7 @@ std::optional<EmojiData> DiscordClient::GetEmoji(Snowflake id) const {
|
||||
}
|
||||
|
||||
Snowflake DiscordClient::GetMemberHoistedRole(Snowflake guild_id, Snowflake user_id, bool with_color) const {
|
||||
const auto data = GetMember(guild_id, user_id);
|
||||
const auto data = GetMember(user_id, guild_id);
|
||||
if (!data.has_value()) return Snowflake::Invalid;
|
||||
|
||||
std::vector<RoleData> roles;
|
||||
|
@ -411,8 +411,8 @@ std::optional<GuildData> Store::GetGuild(Snowflake id) const {
|
||||
}
|
||||
|
||||
std::optional<GuildMember> Store::GetGuildMember(Snowflake guild_id, Snowflake user_id) const {
|
||||
Bind(m_get_member_stmt, 1, guild_id);
|
||||
Bind(m_get_member_stmt, 2, user_id);
|
||||
Bind(m_get_member_stmt, 1, user_id);
|
||||
Bind(m_get_member_stmt, 2, guild_id);
|
||||
if (!FetchOne(m_get_member_stmt)) {
|
||||
if (m_db_err != SQLITE_DONE)
|
||||
fprintf(stderr, "error while fetching member: %s\n", sqlite3_errstr(m_db_err));
|
||||
|
Loading…
Reference in New Issue
Block a user