mirror of
https://github.com/HappyTanuki/BumbleCee.git
synced 2025-10-25 17:35:58 +00:00
큐버그 해결?
This commit is contained in:
@@ -6,11 +6,14 @@ commands::ICommand::ICommand(std::shared_ptr<dpp::cluster> botCluster)
|
||||
}
|
||||
|
||||
std::shared_ptr<MusicQueue> commands::VCCommand::getQueue(const dpp::slashcommand_t& event) {
|
||||
auto findResult = queueMap->find(event.command.guild_id);
|
||||
if (findResult == queueMap->end())
|
||||
{
|
||||
FMusicQueueID queueID;
|
||||
queueID.guild_id = event.command.guild_id;
|
||||
queueID.shard_id = event.from->shard_id;
|
||||
|
||||
(*queueMap)[queueID.guild_id] = std::make_shared<MusicQueue>(queueID, botCluster);
|
||||
|
||||
return queueMap->find(queueID.guild_id)->second;
|
||||
}
|
||||
return queueMap->find(event.command.guild_id)->second;
|
||||
}
|
||||
Reference in New Issue
Block a user