mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: needless getter
This commit is contained in:
parent
e2d5813496
commit
316a533696
@ -104,8 +104,7 @@ export class GuildShorter extends BaseShorter {
|
|||||||
/**
|
/**
|
||||||
* Provides access to channel-related functionality in a guild.
|
* Provides access to channel-related functionality in a guild.
|
||||||
*/
|
*/
|
||||||
get channels() {
|
channels = {
|
||||||
return {
|
|
||||||
/**
|
/**
|
||||||
* Retrieves a list of channels in the guild.
|
* Retrieves a list of channels in the guild.
|
||||||
* @param guildId The ID of the guild.
|
* @param guildId The ID of the guild.
|
||||||
@ -156,13 +155,7 @@ export class GuildShorter extends BaseShorter {
|
|||||||
*/
|
*/
|
||||||
create: async (guildId: string, body: RESTPostAPIGuildChannelJSONBody) => {
|
create: async (guildId: string, body: RESTPostAPIGuildChannelJSONBody) => {
|
||||||
const res = await this.client.proxy.guilds(guildId).channels.post({ body });
|
const res = await this.client.proxy.guilds(guildId).channels.post({ body });
|
||||||
await this.client.cache.channels?.setIfNI(
|
await this.client.cache.channels?.setIfNI(CacheFrom.Rest, BaseChannel.__intent__(guildId), res.id, guildId, res);
|
||||||
CacheFrom.Rest,
|
|
||||||
BaseChannel.__intent__(guildId),
|
|
||||||
res.id,
|
|
||||||
guildId,
|
|
||||||
res,
|
|
||||||
);
|
|
||||||
return channelFrom(res, this.client);
|
return channelFrom(res, this.client);
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -216,13 +209,11 @@ export class GuildShorter extends BaseShorter {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides access to auto-moderation rule-related functionality in a guild.
|
* Provides access to auto-moderation rule-related functionality in a guild.
|
||||||
*/
|
*/
|
||||||
get moderation() {
|
moderation = {
|
||||||
return {
|
|
||||||
/**
|
/**
|
||||||
* Retrieves a list of auto-moderation rules in the guild.
|
* Retrieves a list of auto-moderation rules in the guild.
|
||||||
* @param guildId The ID of the guild.
|
* @param guildId The ID of the guild.
|
||||||
@ -292,13 +283,11 @@ export class GuildShorter extends BaseShorter {
|
|||||||
.then(rule => Transformers.AutoModerationRule(this.client, rule));
|
.then(rule => Transformers.AutoModerationRule(this.client, rule));
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides access to sticker-related functionality in a guild.
|
* Provides access to sticker-related functionality in a guild.
|
||||||
*/
|
*/
|
||||||
get stickers() {
|
stickers = {
|
||||||
return {
|
|
||||||
/**
|
/**
|
||||||
* Retrieves a list of stickers in the guild.
|
* Retrieves a list of stickers in the guild.
|
||||||
* @param guildId The ID of the guild.
|
* @param guildId The ID of the guild.
|
||||||
@ -384,4 +373,3 @@ export class GuildShorter extends BaseShorter {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user