i know i'm doing this wrong cuz there is no guild_flags is member but what would i replace it with? basically what im trying to do is make the bot give the user a role when they complete onboarding and then send a welcome message
@welcome.listener(hikari.MemberCreateEvent)
async def on_member_join_update(event: hikari.MemberCreateEvent) -> None:
member = await event.app.rest.fetch_member(event.guild_id, event.user.id)
if member.guild_flags & hikari.GuildMemberFlags.COMPLETED_ONBOARDING:
role = 816858066330320897
await member.add_role(role)
await welcome.bot.rest.create_message(
781422576660250637, # Main server channel ID
f"You made it, {member.mention}! Welcome to **Sage**, enjoy your stay 💚",
user_mentions=True,
)


