Skip to content

Commit

Permalink
fix: Fix .db() calling syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
B1ue-Dev committed May 20, 2024
1 parent 162d10a commit 483825c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/exts/fun/pokemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import logging
import json
import re
from typing import List, Dict, Union
from typing import List
import interactions
from interactions.ext.hybrid_commands import (
hybrid_slash_command,
Expand Down Expand Up @@ -265,7 +265,7 @@ async def pokedex_autocomplete(
await ctx.send(
[
{
"name": Pokemon.db[name]["name"],
"name": Pokemon.db()[name]["name"],
"value": name,
}
for name in (
Expand All @@ -281,12 +281,12 @@ async def pokedex_autocomplete(
focus: str = "".join(letters)
if (
focus.lower().strip()
in Pokemon.db[pkmn_name]["name"].lower()
in Pokemon.db()[pkmn_name]["name"].lower()
and len(choices) < 20
):
choices.append(
{
"name": Pokemon.db[pkmn_name]["name"],
"name": Pokemon.db()[pkmn_name]["name"],
"value": pkmn_name,
}
)
Expand Down

0 comments on commit 483825c

Please sign in to comment.