Class: FindGuild


# Class: FindGuild

# Hierarchy

  • Method

    FindGuild

# API Methods

# byName

byName(name: string): Promise<ResultObject<$200, [success]>>

Returns the id of the requested guild if found.

example

const { guild } = await client.findGuild.byName("Mini Squid");
console.log(boosters);
// 553490650cf26f12ae5bac8f
1
2
3

# Parameters:

Name Type
name string

Returns: Promise<ResultObject<$200, [success]>>

Defined in: methods/findGuild.ts:16 (opens new window)


# byUuid

byUuid(uuid: string): Promise<ResultObject<$200, [success]>>

Returns the id of the requested guild if found.

example

const { guild } = await client.findGuild.byUuid("20934ef9488c465180a78f861586b4cf");
console.log(guild);
// 553490650cf26f12ae5bac8f
1
2
3

# Parameters:

Name Type
uuid string

Returns: Promise<ResultObject<$200, [success]>>

Defined in: methods/findGuild.ts:37 (opens new window)