Skip to content

Commit

Permalink
fix: Fix argument type into EmojiEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina committed Feb 3, 2023
1 parent 800c6c1 commit 744e395
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/emoji-log.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Snowflake } from '../model/id.js';
import type { EmojiEventResponder, RoleEvent } from '../runner/index.js';
import type { EmojiEvent, EmojiEventResponder } from '../runner/index.js';
import type { StandardOutput } from './output.js';

export interface EmojiData {
Expand All @@ -9,7 +9,7 @@ export interface EmojiData {

export class EmojiLog implements EmojiEventResponder<EmojiData> {
constructor(private readonly output: StandardOutput) {}
async on(event: RoleEvent, role: EmojiData): Promise<void> {
async on(event: EmojiEvent, role: EmojiData): Promise<void> {
if (event !== 'CREATE') {
return;
}
Expand Down

0 comments on commit 744e395

Please sign in to comment.