mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-19 17:13:31 -04:00
refactor: conform to linter
This commit is contained in:
@@ -222,7 +222,14 @@ export class Message {
|
||||
if (!system) return { type: "none" };
|
||||
|
||||
const { type } = system;
|
||||
|
||||
/**
|
||||
* Get user by their id
|
||||
* @param id Id
|
||||
* @returns User
|
||||
*/
|
||||
const get = (id: string) => this.#collection.client.users.get(id);
|
||||
|
||||
switch (system.type) {
|
||||
case "text":
|
||||
return system;
|
||||
@@ -316,7 +323,7 @@ export class Message {
|
||||
}
|
||||
|
||||
/**
|
||||
* Unreact from a message
|
||||
* Un-react from a message
|
||||
* @param emoji Unicode or emoji ID
|
||||
*/
|
||||
async unreact(emoji: string) {
|
||||
|
||||
@@ -122,8 +122,8 @@ export class ServerMember {
|
||||
}
|
||||
|
||||
/**
|
||||
* Member's ranking.
|
||||
* Smaller values are ranked as higher priotity.
|
||||
* Member's ranking
|
||||
* Smaller values are ranked as higher priority
|
||||
*/
|
||||
get ranking() {
|
||||
if (this.id.user === this.server?.ownerId) {
|
||||
|
||||
@@ -2,7 +2,7 @@ require("dotenv").config();
|
||||
|
||||
const { Client } = require(".");
|
||||
|
||||
const client = new Client();
|
||||
const client = new Client({ debug: true });
|
||||
|
||||
client.on("ready", () => console.info(`Logged in as ${client.user.username}!`));
|
||||
client.on("disconnected", () => console.info("Disconnected."));
|
||||
|
||||
Reference in New Issue
Block a user