Update examples and formatting

This commit is contained in:
Nicolás Serna 2022-07-13 21:29:14 -03:00
parent dd026e1774
commit 0e51078f48
8 changed files with 37 additions and 36 deletions

1
.gitignore vendored
View File

@ -12,3 +12,4 @@ npm/
node_modules/
package-lock.json
package.json
bun.lockb

View File

@ -1,5 +1,8 @@
// TODO: remove and include the library appropriately
import { GatewayIntents, Session } from "./deps.ts";
/**
* Bun example
*/
import { GatewayIntents, Session } from "@oasisjs/biscuit";
const token = process.env.TOKEN;
const intents = GatewayIntents.MessageContent | GatewayIntents.Guilds | GatewayIntents.GuildMessages;

View File

@ -1,2 +0,0 @@
// TODO: remove and include the library appropriately
export * from "../mod.ts";

View File

@ -691,8 +691,7 @@ export class Guild extends BaseGuild implements Model {
splash: "splashURL" in options
? options.splashURL || urlToBase64(options.splashURL!)
: options.splashHash || Util.iconBigintToHash(options.iconHash!),
banner: "bannerURL" in options
? options.bannerURL || urlToBase64(options.bannerURL!)
banner: "bannerURL" in options ? options.bannerURL || urlToBase64(options.bannerURL!)
: options.bannerHash || Util.iconBigintToHash(options.bannerHash!),
discovery_splash: "discoverySplashURL" in options
? options.discoverySplashURL || urlToBase64(options.discoverySplashURL!)