Skip to content

Commit

Permalink
Merge pull request #112 from moeyashi/feature/20240428
Browse files Browse the repository at this point in the history
feat: サーバーメンバーをすべて取得するように
  • Loading branch information
moeyashi authored Apr 28, 2024
2 parents 2e64bd9 + 97c92da commit 30f9231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slash-command/ranking.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default {

await interaction.deferReply();

const serverMembers = Array.from((await interaction.guild.members.fetch({ limit: 200 })).values());
const serverMembers = Array.from((await interaction.guild.members.fetch()).values());
const ranking = await nitaRepository.selectRanking(track.code, serverMembers, 20, (page - 1) * 20);
const myRank = await nitaRepository.selectRankByUser(track.code, interaction.user.id, serverMembers);
const rankingSize = await nitaRepository.countExistsNita(track.code, serverMembers);
Expand Down

0 comments on commit 30f9231

Please sign in to comment.