artibot-twitter
Version:
Send embeds to Discord when a tweet is posted
34 lines (33 loc) • 1.2 kB
TypeScript
import Artibot, { Module } from "artibot";
interface ArtibotTwitterConfig {
users: string[];
token?: string;
channel: string;
everyone: boolean;
role?: string;
banner?: string;
}
export declare class ArtibotTwitterConfigBuilder implements ArtibotTwitterConfig {
users: string[];
token?: string;
channel: string;
everyone: boolean;
role?: string;
banner?: string;
/** Add a twitter username */
addUser(username: string): this;
/** Add multiple twitter usernames */
addUsers(...usernames: string[] | string[][]): this;
/** Set the authentication token for Twitter API */
setToken(token: string): this;
/** Set the channel name where to send notifications */
setChannel(channel: string): this;
/** Tag everyone when a new tweet is posted? */
tagEveryone(value?: boolean): this;
/** Set the role name to ping when a new tweet is posted */
setRole(roleName: string): this;
/** Set the banner image URL */
setBanner(bannerURL: string): this;
}
export default function artibotTwitter({ config: { lang } }: Artibot, twitterConfig: ArtibotTwitterConfig): Module;
export {};