Skip to content

Instantly share code, notes, and snippets.

@dn1t
Last active July 16, 2021 07:19
Show Gist options
  • Save dn1t/741d206792c9f37d9725034a6de47f83 to your computer and use it in GitHub Desktop.
Save dn1t/741d206792c9f37d9725034a6de47f83 to your computer and use it in GitHub Desktop.
declare interface Api {
runRhino(source: string);
}
declare interface Bot {
/**
* 메시지를 전송합니다
* @param room 전송할 방의 이름
* @param message 전송할 메시지
*/
reply(room: string, message: string):void;
/**
* 전체보기와 같이 메시지를 전송합니다
* @param room 전송할 방 이름
* @param message 먼저 보여줄 메시지
* @param message2 전체보기 이후 나올 메시지
*/
replyShowAll(room: string, message: string, message2: string):void;
}
declare interface File {
/**
* 파일을 저장합니다
* @param title 파일의 제목
* @param content 파일에 내용
*/
save(title: string, content: string)
/**
* 파일을 읽습니다.
* @param title 파일의 제목
* @param def Unknown
*/
read(title: string, def: string)
}
declare interface Image {
/**
* 마지막 이미지를 가져옵니다.
*/
getLastImage()
/**
* 채팅 전송자의 프로필 이미지를 가져옵니다.
*/
getProfileImage()
}
declare interface Log {
/**
* Unknown
* @param any Unknown
*/
test(any: any)
/**
* 에러 로그를 출력합니다.
* @param value 출력할 메시지
*/
e(value: string)
/**
* 디버그 로그를 출력합니다.
* @param value 출력할 메시지
*/
d(value: string)
/**
* 정보 로그를 출력합니다.
* @param value 출력할 메시지
*/
i(value: string)
}
declare interface UI {
/**
* 토스트를 출력합니다
* @param message 출력할 내용
*/
toast(message: string)
/**
* 알림을 생성합니다.
* @param title 알림의 제목
* @param message 알림의 내용
* @param id 알림의 ID. 이 값은 고유합니다.
*/
notification(title: string, message: string, id: number)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment