seyfert 2.2.1-dev-14228555064.0 → 2.2.1-dev-14284105823.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/client/base.d.ts
CHANGED
package/lib/client/base.js
CHANGED
|
@@ -35,7 +35,6 @@ class BaseClient {
|
|
|
35
35
|
voiceStates = new voiceStates_1.VoiceStateShorter(this);
|
|
36
36
|
soundboards = new soundboard_1.SoundboardShorter(this);
|
|
37
37
|
invites = new common_1.InvitesShorter(this);
|
|
38
|
-
/**@internal */
|
|
39
38
|
debugger;
|
|
40
39
|
logger = new common_1.Logger({
|
|
41
40
|
name: '[Seyfert]',
|
|
@@ -35,7 +35,7 @@ export declare class GuildShorter extends BaseShorter {
|
|
|
35
35
|
* @returns The generated widget URL.
|
|
36
36
|
*/
|
|
37
37
|
widgetURL(id: string, style?: GuildWidgetStyle): Promise<import("../../types").APIGuildWidgetSettings>;
|
|
38
|
-
edit(guildId: string, body: RESTPatchAPIGuildJSONBody, reason?: string): Promise<
|
|
38
|
+
edit(guildId: string, body: RESTPatchAPIGuildJSONBody, reason?: string): Promise<GuildStructure<'api'>>;
|
|
39
39
|
list(query?: RESTGetAPICurrentUserGuildsQuery): Promise<AnonymousGuildStructure[]>;
|
|
40
40
|
fetchSelf(id: string, force?: boolean): Promise<GuildMemberStructure>;
|
|
41
41
|
leave(id: string): Promise<void | undefined>;
|
|
@@ -42,7 +42,9 @@ class GuildShorter extends base_1.BaseShorter {
|
|
|
42
42
|
if (guild)
|
|
43
43
|
return guild;
|
|
44
44
|
}
|
|
45
|
-
const data = await this.client.proxy
|
|
45
|
+
const data = await this.client.proxy
|
|
46
|
+
.guilds(id)
|
|
47
|
+
.get({ query: typeof options === 'boolean' ? undefined : options.query });
|
|
46
48
|
await this.client.cache.guilds?.patch(cache_1.CacheFrom.Rest, id, data);
|
|
47
49
|
return (await this.client.cache.guilds?.raw(id)) ?? data;
|
|
48
50
|
}
|