mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 10:45:27 +00:00
fix kick "not a member" error
This commit is contained in:
parent
774a418b15
commit
4c40a0a64b
|
@ -163,17 +163,8 @@ export default {
|
||||||
|
|
||||||
for (const user of targetUsers) {
|
for (const user of targetUsers) {
|
||||||
try {
|
try {
|
||||||
const member = members.find((m) => m.id.user == user.id);
|
const member = members.find((m) => m.id.user == user.id)
|
||||||
if (!member) {
|
|| await message.serverContext.fetchMember(user.id);
|
||||||
embeds.push(
|
|
||||||
embed(
|
|
||||||
`\`${await fetchUsername(
|
|
||||||
user.id
|
|
||||||
)}\` is not a member of this server.`
|
|
||||||
)
|
|
||||||
);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
let infId = ulid();
|
let infId = ulid();
|
||||||
let infraction: Infraction = {
|
let infraction: Infraction = {
|
||||||
|
|
Loading…
Reference in a new issue