Skip to content

Commit

Permalink
fix: wrong return type
Browse files Browse the repository at this point in the history
  • Loading branch information
xhayper authored Jul 24, 2024
1 parent 1ff7c1f commit f46ed9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/ClientUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class ClientUser extends User {
* @param guildId - id of the guild to get channels for
* @returns guild channels the user is in
*/
async fetchChannels(guildId: string): Promise<Channel> {
async fetchChannels(guildId: string): Promise<Channel[]> {
return (
await this.client.request("GET_CHANNELS", { guild_id: guildId })
).data.channels.map(
Expand Down

0 comments on commit f46ed9f

Please sign in to comment.