mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 03:44:13 +02:00
refactor(arabot): change parameter to follow new style
This commit is contained in:
parent
1533fdeeb5
commit
ab1cea2729
@ -23,16 +23,16 @@ import { updateUser } from '#utils/database/dbExistingUser';
|
||||
import { leaveBan } from '#utils/verificationConfig';
|
||||
import { fibonacci } from '#utils/maths';
|
||||
|
||||
export async function joinVerification(channelId: Snowflake, user: GuildMember) {
|
||||
export async function joinVerification(channelId: Snowflake, member: GuildMember) {
|
||||
// Update the user on the database with the current roles they have
|
||||
await updateUser(user);
|
||||
await updateUser(member);
|
||||
|
||||
await container.database.verify.create({
|
||||
data: {
|
||||
id: channelId,
|
||||
user: {
|
||||
connect: {
|
||||
id: user.id,
|
||||
id: member.id,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user