refactor(arabot): change parameter to follow new style

This commit is contained in:
smyalygames 2023-02-20 12:31:23 +00:00
parent 1533fdeeb5
commit ab1cea2729

View File

@ -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,
},
},
},