mirror of
https://github.com/Syping/dtranslatebot.git
synced 2025-12-04 10:51:48 +01:00
MSVC fixes
This commit is contained in:
parent
2c4464c134
commit
2ad1bc3aa5
5 changed files with 11 additions and 7 deletions
|
|
@ -493,7 +493,7 @@ void file::list_guilds(std::vector<dpp::snowflake> *guilds)
|
|||
for (const auto &guild_file : std::filesystem::directory_iterator(guild_dir)) {
|
||||
const std::filesystem::path &guild_file_path = guild_file.path();
|
||||
if (guild_file_path.extension() == ".json") {
|
||||
const std::string &guild_filename = guild_file_path.stem();
|
||||
const std::string guild_filename = guild_file_path.stem().generic_string();
|
||||
if (std::all_of(guild_filename.begin(), guild_filename.end(), ::isdigit)) {
|
||||
try {
|
||||
dpp::snowflake guild_id = std::stoull(guild_filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue