mirror of
https://github.com/Syping/dtranslatebot.git
synced 2025-09-11 11:16:38 +02:00
take advantage of initializer lists
This commit is contained in:
parent
9202f7ce00
commit
2347974beb
2 changed files with 8 additions and 31 deletions
|
@ -228,10 +228,7 @@ void settings::add_channel(const channel &channel, dpp::snowflake guild_id)
|
|||
}
|
||||
|
||||
// We will create the guild structure when it is not in memory
|
||||
guild guild;
|
||||
guild.id = guild_id;
|
||||
guild.channel.push_back(channel);
|
||||
m_guilds.push_back(std::move(guild));
|
||||
m_guilds.push_back({ guild_id, { channel } });
|
||||
}
|
||||
|
||||
bool settings::add_target(const target &target, dpp::snowflake guild_id, dpp::snowflake channel_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue