Skip to content

Commit

Permalink
Fixing API for V4
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeyUsersREC authored and Mikey committed Dec 30, 2023
1 parent c41919a commit 438bcf1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 696 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Install later dependencies
run: |
pip3 install --upgrade reactionmenu jishaku oauth2client gspread sentry_sdk[pymongo]
pip3 install --upgrade reactionmenu jishaku oauth2client gspread_asyncio sentry_sdk[pymongo]
- name: Run test suite
run: |
Expand Down
8 changes: 0 additions & 8 deletions cogs/ShiftLogging.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
import asyncio
import copy
import datetime
from io import BytesIO

import aiohttp

import discord
import num2words
import pytz
from decouple import config
from discord import app_commands
from discord.ext import commands
from reactionmenu import Page, ViewButton, ViewMenu, ViewSelect
from reactionmenu.abc import _PageController

from datamodels.ShiftManagement import ShiftItem
from erm import credentials_dict, is_management, is_staff, management_predicate, scope
from menus import (
AdministrativeSelectMenu,
CustomExecutionButton,
CustomSelectMenu,
ModificationSelectMenu,
RequestGoogleSpreadsheet,
ShiftMenu,
AdministratedShiftMenu,
Expand Down
5 changes: 2 additions & 3 deletions menus.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import asyncio
import datetime
import typing
from copy import copy
import discord
import pytz
import roblox
Expand Down Expand Up @@ -5527,7 +5526,7 @@ async def cancel(self, interaction: discord.Interaction, button: discord.Button)
disabled=True,
row=3
)
async def finish(self, interaction: discord.Interaction, button: discord.Button):
async def finish(self, interaction: discord.Interaction, _: discord.Button):
await interaction.response.defer()
self.cancelled = False
self.stop()
Expand Down Expand Up @@ -5697,7 +5696,7 @@ async def interaction_check(self, interaction: Interaction, /) -> bool:
style=discord.ButtonStyle.green,
row=0
)
async def create_custom_command(self, interaction: discord.Interaction, button: discord.Button):
async def create_custom_command(self, interaction: discord.Interaction, _: discord.Button):
self.value = "create"
self.modal = CustomModal(
"Create a Custom Command",
Expand Down
Loading

0 comments on commit 438bcf1

Please sign in to comment.