seyfert
Version:
The most advanced framework for discord bots
59 lines (58 loc) • 2.11 kB
TypeScript
import type { ReturnCache } from '../..';
import type { GuildStructure } from '../../client';
import { type ObjectToLower } from '../../common';
import type { ImageOptions } from '../../common/types/options';
import { type APIPartialGuild } from '../../types';
import { DiscordBase } from './DiscordBase';
export interface BaseGuild extends ObjectToLower<APIPartialGuild> {
}
/**
* Base guild class
*/
export declare class BaseGuild extends DiscordBase<APIPartialGuild> {
get partnered(): boolean;
/**
* If the guild is verified.
* @link https://discord.com/developers/docs/resources/guild#guild-object-guild-features
*/
get verified(): boolean;
/**
* Fetch guild on API
*/
fetch(mode?: 'rest' | 'flow'): Promise<GuildStructure<'cached' | 'api'>>;
fetch(mode: 'cache'): ReturnCache<GuildStructure<'cached'> | undefined>;
/**
* Leave the guild.
*/
leave(): Promise<void | undefined>;
/**
* iconURL gets the current guild icon.
* @link https://discord.com/developers/docs/reference#image-formatting
*/
iconURL(options?: ImageOptions): string | undefined;
/**
* splashURL gets the current guild splash as a string.
* @link https://discord.com/developers/docs/reference#image-formatting
* @param options - Image options for the splash url.
* @returns Splash url or void.
*/
splashURL(options?: ImageOptions): string | undefined;
/**
* bannerURL gets the current guild banner as a string.
* @link https://discord.com/developers/docs/reference#image-formatting
* @param options - Image options for the banner url.
* @returns Banner url or void
*/
bannerURL(options?: ImageOptions): string | undefined;
/**
* Shard ID of the guild.
* @returns Shard ID or -1 if the client is not gateway based.
*/
get shardId(): number;
/**
* Shard of the guild.
* @returns Shard or undefined, if the client is not gateway based always undefined.
*/
get shard(): import("../../websocket").Shard | undefined;
toString(): string;
}