We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c2a2b6 commit 57c92b0Copy full SHA for 57c92b0
botstrap.py
@@ -112,12 +112,12 @@ def guild_channels(self) -> list[dict[str, Any]]:
112
self._guild_channels = cast("list[dict[str, Any]]", response.json())
113
return self._guild_channels
114
115
- def get_channel(self, id: int | str) -> dict[str, Any]:
+ def get_channel(self, id_: int | str) -> dict[str, Any]:
116
"""Fetches a channel by its ID."""
117
for channel in self.guild_channels:
118
- if channel["id"] == str(id):
+ if channel["id"] == str(id_):
119
return channel
120
- raise KeyError(f"Channel with ID {id} not found.")
+ raise KeyError(f"Channel with ID {id_} not found.")
121
122
@property
123
def app_info(self) -> dict[str, Any]:
0 commit comments