mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-09-14 23:12:20 +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 { leaveBan } from '#utils/verificationConfig';
|
||||||
import { fibonacci } from '#utils/maths';
|
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
|
// Update the user on the database with the current roles they have
|
||||||
await updateUser(user);
|
await updateUser(member);
|
||||||
|
|
||||||
await container.database.verify.create({
|
await container.database.verify.create({
|
||||||
data: {
|
data: {
|
||||||
id: channelId,
|
id: channelId,
|
||||||
user: {
|
user: {
|
||||||
connect: {
|
connect: {
|
||||||
id: user.id,
|
id: member.id,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user