Skip to content

Commit

Permalink
little update
Browse files Browse the repository at this point in the history
  • Loading branch information
GhomKrosmonaute committed Oct 6, 2023
1 parent c5dece2 commit e1286d2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/commands/elders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ export default new app.Command({
app.hasConfigKey("elders_role_pattern"),
app.isNotInUse(() => used),
],
flags: [
{
flag: "f",
name: "force",
description: "Force the update of all members",
},
],
async run(message) {
used = true

Expand Down Expand Up @@ -40,14 +47,14 @@ export default new app.Command({

message.guild.members.cache.clear()

const logs: string[] = []

await waiting.edit(
`${app.emote(message, "WAIT")} Looking for new elders from ${
members.length
} members...`
)

const logs: string[] = []

for (const member of members) {
await member.fetch(true)

Expand Down

0 comments on commit e1286d2

Please sign in to comment.