Skip to content

Commit 57c92b0

Browse files
don't shadow id_
1 parent 7c2a2b6 commit 57c92b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

botstrap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ def guild_channels(self) -> list[dict[str, Any]]:
112112
self._guild_channels = cast("list[dict[str, Any]]", response.json())
113113
return self._guild_channels
114114

115-
def get_channel(self, id: int | str) -> dict[str, Any]:
115+
def get_channel(self, id_: int | str) -> dict[str, Any]:
116116
"""Fetches a channel by its ID."""
117117
for channel in self.guild_channels:
118-
if channel["id"] == str(id):
118+
if channel["id"] == str(id_):
119119
return channel
120-
raise KeyError(f"Channel with ID {id} not found.")
120+
raise KeyError(f"Channel with ID {id_} not found.")
121121

122122
@property
123123
def app_info(self) -> dict[str, Any]:

0 commit comments

Comments
 (0)