TulipSMP / Tiramisu

Here to help with moderation and community management!
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

No warning when could not give staff role #51

Closed TheKrafter closed 1 year ago

TheKrafter commented 1 year ago

Description

First applicant is not given staff role

Ignoring exception in view <ApplicationActions timeout=None children=2> for item <Button style=<ButtonStyle.success: 3> url=None disabled=False label='Accept' emoji=<PartialEmoji animated=False name='✅' id=None> row=None>:
Traceback (most recent call last):
  File "/home/container/.local/lib/python3.10/site-packages/nextcord/ui/view.py", line 370, in _scheduled_task
    await item.callback(interaction)
  File "/home/container/libs/buttons.py", line 71, in on_accept
    await applications.accept(interaction)
  File "/home/container/libs/applications.py", line 236, in accept
    await creator.add_roles(staff_role)
  File "/home/container/.local/lib/python3.10/site-packages/nextcord/member.py", line 946, in add_roles
    await req(guild_id, user_id, role.id, reason=reason)
  File "/home/container/.local/lib/python3.10/site-packages/nextcord/http.py", line 394, in request
    raise Forbidden(response, data)
nextcord.errors.Forbidden: 403 Forbidden (error code: 50013): Missing Permissions

Steps to reproduce

  1. Have Tiramisu's role below the staff_role
  2. Accept an application
  3. Shows the error above in log and does not give the role.